Home » date » 2008 » May » 27 »

classical decomposition vruchtensappen - sanne peelmans

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 27 May 2008 12:16:43 -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/27/t1211912310xri2z1aqbm12xc4.htm/, Retrieved Tue, 27 May 2008 20:18:35 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,08 1,08 1,09 1,1 1,1 1,11 1,1 1,1 1,11 1,11 1,11 1,11 1,11 1,12 1,11 1,11 1,12 1,12 1,11 1,12 1,11 1,11 1,1 1,1 1,1 1,11 1,1 1,1 1,09 1,1 1,1 1,11 1,13 1,13 1,13 1,13 1,14 1,14 1,14 1,15 1,15 1,15 1,15 1,15 1,15 1,14 1,14 1,14 1,13 1,12 1,13 1,13 1,13 1,12 1,13 1,12 1,12 1,11 1,11 1,11 1,11 1,14 1,15 1,15 1,16 1,15 1,16 1,13 1,13 1,12 1,12 1,11 1,11
 
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 time5 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.08NANA0.999311583863834NA
21.08NANA1.00115886493703NA
31.09NANA0.998573025789527NA
41.1NANA1.00066648711199NA
51.1NANA1.00065273192827NA
61.11NANA1.00068929179717NA
71.11.101990662992181.101251.000672565713670.998193575445756
81.11.107204856008401.104166666666671.002751567705720.99349275252064
91.111.111552743880241.106666666666671.004415130012270.998603085738582
101.111.107082264389351.107916666666670.9992468727094531.00263551833906
111.111.105005695521271.109166666666670.9962485609508031.00451970926392
121.111.105545621285371.110416666666670.9956133174802581.00402912247932
131.111.110484997568691.111250.9993115838638340.999563256082029
141.121.113789237242451.11251.001158864937031.00557624598073
151.111.111744635379011.113333333333330.9985730257895270.998430722916498
161.111.114075355651351.113333333333331.000666487111990.996341938962497
171.121.113643102908511.112916666666671.000652731928271.00570819957928
181.121.112849883252771.112083333333331.000689291797171.00642505054350
191.111.111997388649311.111251.000672565713670.998203782967747
201.121.113472053306561.110416666666671.002751567705721.00586269468916
211.111.114482288009451.109583333333331.004415130012270.995978143342724
221.111.107914970116611.108750.9992468727094531.00188194034708
231.11.102930177685951.107083333333330.9962485609508030.997343279071301
241.11.100152715815691.1050.9956133174802580.99986118671209
251.11.102990160689711.103750.9993115838638340.997289041374732
261.111.104194798120141.102916666666671.001158864937031.00525740737934
271.11.101758905121111.103333333333330.9985730257895270.9984035480785
281.11.105736468258751.1051.000666487111990.99481208368954
291.091.107805961972261.107083333333331.000652731928270.983926822400776
301.11.110348160023281.109583333333331.000689291797170.990680256521466
311.11.113248229356461.11251.000672565713670.988099483109788
321.111.118485811145081.115416666666671.002751567705720.99241312579871
331.131.123270920397051.118333333333331.004415130012271.00599061141952
341.131.121238261752731.122083333333330.9992468727094531.00781434111388
351.131.122440045337901.126666666666670.9962485609508031.00673528594556
361.131.126287565399541.131250.9956133174802581.00329616939271
371.141.134635027512061.135416666666670.9993115838638341.00472836846902
381.141.140486806974101.139166666666671.001158864937030.999573158609878
391.141.140037537776381.141666666666670.9985730257895270.999967073210194
401.151.143678405895081.142916666666671.000666487111991.00552742280726
411.151.144496562142961.143751.000652731928271.00480861021263
421.151.145372285236181.144583333333331.000689291797171.00404035860084
431.151.145353140839771.144583333333331.000672565713671.00405714097647
441.151.146479292410201.143333333333331.002751567705721.00307088633271
451.151.147125779734851.142083333333331.004415130012271.00250558423142
461.141.139974140616031.140833333333330.9992468727094531.00002268418471
471.141.134893152349791.139166666666670.9962485609508031.00449984885329
481.141.132095309751511.137083333333330.9956133174802581.00698235403009
491.131.134218647685451.1350.9993115838638340.996280569276426
501.121.134229564068251.132916666666671.001158864937030.98745442323227
511.131.128803591236241.130416666666670.9985730257895271.00105989099702
521.131.12866840858841.127916666666671.000666487111991.00117978974291
531.131.126151262057611.125416666666671.000652731928271.00341760300953
541.121.123690683913911.122916666666671.000689291797170.996715569536402
551.131.121587167404071.120833333333331.000672565713671.00750082814821
561.121.123917382136821.120833333333331.002751567705720.996514528381636
571.121.127455983438771.12251.004415130012270.99338689620855
581.111.123320026070881.124166666666670.9992468727094530.98814226955655
591.111.122024941770841.126250.9962485609508030.98928282133206
601.111.123798532105841.128750.9956133174802580.987721525067322
611.111.130471229245961.131250.9993115838638340.981891419510413
621.141.134229564068251.132916666666671.001158864937031.00508753793285
631.151.132132167988881.133750.9985730257895271.01578246119697
641.151.135339518502481.134583333333331.000666487111991.0129128610945
651.161.136157789376891.135416666666671.000652731928271.02098494667381
661.151.136616253932951.135833333333331.000689291797171.01177507889821
671.161.136597255889771.135833333333331.000672565713671.02059018178071
681.13NANA1.00275156770572NA
691.13NANA1.00441513001227NA
701.12NANA0.999246872709453NA
711.12NANA0.996248560950803NA
721.11NANA0.995613317480258NA
731.11NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/1go7d1211912196.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/1go7d1211912196.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/21jxx1211912196.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/21jxx1211912196.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/3vhhd1211912196.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/3vhhd1211912196.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/4q5xz1211912197.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211912310xri2z1aqbm12xc4/4q5xz1211912197.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