Home » date » 2008 » May » 18 » attachments

Sanne Aertgeerts - Sigaretten - Multi

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 18 May 2008 14:16:08 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc.htm/, Retrieved Sun, 18 May 2008 22:17:26 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,68 4,68 4,67 4,58 4,48 4,46 4,46 4,46 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,44 4,44 4,44 4,44 4,44 4,43 4,38 4,23 4,2 4,2 4,2 4,2 4,2 4,19 4,16 4,06 4 3,99 3,95 3,81 3,8 3,8 3,8 3,8 3,79 3,79 3,78 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,68 3,63 3,61 3,61 3,61 3,6 3,58 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,51 3,47 3,43 3,42 3,42
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
14.68NANA0.990704281755185NA
24.68NANA0.995081361429131NA
34.67NANA0.999464552079333NA
44.58NANA1.00326872138442NA
54.48NANA1.00336794140971NA
64.46NANA1.00627418687881NA
74.464.551885537534714.512916666666671.008634963538300.97981374162926
84.464.499745501616324.493751.001334186729640.991167166764866
94.454.482997515480194.4751.001787154297250.992639408037536
104.454.478672684963214.460416666666671.004092895274330.993597950334822
114.454.450547147344574.453333333333330.999374359433660.999877060656487
124.454.391260690763004.450833333333330.9866153957902281.01337641132547
134.454.407808466909114.449166666666670.9907042817551851.0095719978324
144.454.425624354956064.44750.9950813614291311.00550784320785
154.454.443869264682744.446250.9994645520793331.00137959398716
164.454.459529466553744.4451.003268721384420.997863122864147
174.444.456207869785894.441251.003367941409710.996362855984394
184.444.456956086050754.429166666666671.006274186878810.996195590505408
194.444.447659924635754.409583333333331.008634963538300.998277762966247
204.444.394605412009714.388751.001334186729641.01032961636697
214.444.375722807707534.367916666666671.001787154297251.01468950276724
224.434.364875490165454.347083333333331.004092895274331.01492013002004
234.384.323959728482974.326666666666670.999374359433661.01296040551624
244.234.248612548121674.306250.9866153957902280.995619146742412
254.24.244342260419514.284166666666670.9907042817551850.989552619063496
264.24.235729661816674.256666666666670.9950813614291310.991564697308528
274.24.220239071154984.22250.9994645520793330.995204283261269
284.24.199515656261614.185833333333331.003268721384421.00011533323793
294.24.163558886874724.149583333333331.003367941409711.00875239527419
304.194.139979717183934.114166666666671.006274186878811.01208225311067
314.164.115230651236254.081.008634963538301.01087894034574
324.064.052065675632614.046666666666671.001334186729641.00195809372368
3344.020505779246294.013333333333331.001787154297250.994899701586765
343.993.996289723191843.981.004092895274330.99842610930951
353.953.943781065915083.946250.999374359433661.00157689637964
363.813.860132736029273.91250.9866153957902280.987012691154026
373.83.843932613210123.880.9907042817551850.988570920036647
383.83.829819389800373.848750.9950813614291310.992213891370495
393.83.818371032506423.820416666666670.9994645520793330.99518877753104
403.83.807404797653873.7951.003268721384420.998055158816202
413.793.784369419016973.771666666666671.003367941409711.00148785183464
423.793.779398133552353.755833333333331.006274186878811.00280517322415
433.783.778598732155343.746251.008634963538301.00037084325275
443.693.742069300324233.737083333333331.001334186729640.986085425964795
453.693.734579028957293.727916666666671.001787154297250.988063171615427
463.693.733552082261723.718333333333331.004092895274330.988334947175737
473.693.70434762563413.706666666666670.999374359433660.996126814466651
483.693.643077348955423.69250.9866153957902281.01287994916112
493.693.643727789605433.677916666666670.9907042817551851.01269914029434
503.693.649460893041343.66750.9950813614291311.01110824534001
513.693.658456704173733.660416666666670.9994645520793331.00862202244741
523.683.664020976222683.652083333333331.003268721384421.00436106230860
533.633.652677376706943.640416666666671.003367941409710.99379157413366
543.613.64900177016933.626251.006274186878810.989311660386645
553.613.643273541213963.612083333333331.008634963538300.99086713066215
563.613.602716959337693.597916666666671.001334186729641.00202154117143
573.63.590154714212773.583751.001787154297251.00274230125745
583.583.584611636129363.571.004092895274330.998713490721595
593.523.556523501634543.558750.999374359433660.989730560864352
603.523.502895744803553.550416666666670.9866153957902281.00488289016932
613.523.509982711568483.542916666666670.9907042817551851.00285394238510
623.523.517612612651983.5350.9950813614291311.00067869535703
633.523.523528989643023.525416666666670.9994645520793330.998998450231745
643.523.52523546976453.513751.003268721384420.998514859557778
653.523.515132354738693.503333333333331.003367941409711.00138476870003
663.523.516928283141463.4951.006274186878811.00087340901242
673.52NANA1.00863496353830NA
683.51NANA1.00133418672964NA
693.47NANA1.00178715429725NA
703.43NANA1.00409289527433NA
713.42NANA0.99937435943366NA
723.42NANA0.986615395790228NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/14cfb1211141766.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/14cfb1211141766.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/26j681211141766.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/26j681211141766.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/381le1211141766.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/381le1211141766.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/4frlu1211141766.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/18/t12111418422ojy26v21e5y9gc/4frlu1211141766.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ;
 
R code (references can be found in the software module):
par2 <- as.numeric(par2)
x <- ts(x,freq=par2)
m <- decompose(x,type=par1)
m$figure
bitmap(file='test1.png')
plot(m)
dev.off()
mylagmax <- length(x)/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$trend),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$seasonal),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$random),na.action=na.pass,lag.max = mylagmax,main='Random')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
spectrum(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
spectrum(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$trend[!is.na(m$trend)]),main='Trend')
cpgram(as.numeric(m$seasonal[!is.na(m$seasonal)]),main='Seasonal')
cpgram(as.numeric(m$random[!is.na(m$random)]),main='Random')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Classical Decomposition by Moving Averages',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observations',header=TRUE)
a<-table.element(a,'Fit',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Random',header=TRUE)
a<-table.row.end(a)
for (i in 1:length(m$trend)) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
if (par1 == 'additive') a<-table.element(a,m$trend[i]+m$seasonal[i]) else a<-table.element(a,m$trend[i]*m$seasonal[i])
a<-table.element(a,m$trend[i])
a<-table.element(a,m$seasonal[i])
a<-table.element(a,m$random[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by