Home » date » 2008 » May » 20 » attachments

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, 20 May 2008 06:10:20 -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/20/t1211285475kfvh9qo2d2nag16.htm/, Retrieved Tue, 20 May 2008 14:11:19 +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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.08NANA-0.000772569444444473NA
21.08NANA0.00120659722222228NA
31.09NANA-0.00160590277777771NA
41.1NANA0.00078993055555555NA
51.1NANA0.000789930555555438NA
61.11NANA0.00078993055555555NA
71.11.102039930555561.101250.00078993055555555-0.00203993055555562
81.11.107248263888891.104166666666670.0030815972222223-0.00724826388888888
91.111.111623263888891.106666666666670.0049565972222222-0.00162326388888911
101.111.107039930555561.10791666666667-0.0008767361111111560.00296006944444427
111.111.104956597222221.10916666666667-0.004210069444444450.00504340277777771
121.111.105477430555561.11041666666667-0.004939236111111070.0045225694444444
131.111.110477430555561.11125-0.000772569444444473-0.000477430555555713
141.121.113706597222221.11250.001206597222222280.00629340277777746
151.111.111727430555561.11333333333333-0.00160590277777771-0.00172743055555546
161.111.114123263888891.113333333333330.00078993055555555-0.00412326388888884
171.121.113706597222221.112916666666670.0007899305555554380.0062934027777779
181.121.112873263888891.112083333333330.000789930555555550.00712673611111114
191.111.112039930555561.111250.00078993055555555-0.00203993055555562
201.121.113498263888891.110416666666670.00308159722222230.00650173611111104
211.111.114539930555561.109583333333330.0049565972222222-0.00453993055555557
221.111.107873263888891.10875-0.0008767361111111560.00212673611111103
231.11.102873263888891.10708333333333-0.00421006944444445-0.00287326388888887
241.11.100060763888891.105-0.00493923611111107-6.07638888887596e-05
251.11.102977430555561.10375-0.000772569444444473-0.00297743055555544
261.111.104123263888891.102916666666670.001206597222222280.00587673611111095
271.11.101727430555561.10333333333333-0.00160590277777771-0.00172743055555546
281.11.105789930555561.1050.00078993055555555-0.00578993055555554
291.091.107873263888891.107083333333330.000789930555555438-0.0178732638888888
301.11.110373263888891.109583333333330.00078993055555555-0.0103732638888889
311.11.113289930555561.11250.00078993055555555-0.0132899305555556
321.111.118498263888891.115416666666670.0030815972222223-0.00849826388888864
331.131.123289930555561.118333333333330.00495659722222220.00671006944444441
341.131.121206597222221.12208333333333-0.0008767361111111560.00879340277777763
351.131.122456597222221.12666666666667-0.004210069444444450.00754340277777787
361.131.126310763888891.13125-0.004939236111111070.00368923611111116
371.141.134644097222221.13541666666667-0.0007725694444444730.00535590277777787
381.141.140373263888891.139166666666670.00120659722222228-0.000373263888888919
391.141.140060763888891.14166666666667-0.00160590277777771-6.07638888889817e-05
401.151.143706597222221.142916666666670.000789930555555550.00629340277777768
411.151.144539930555561.143750.0007899305555554380.00546006944444444
421.151.145373263888891.144583333333330.000789930555555550.00462673611111097
431.151.145373263888891.144583333333330.000789930555555550.00462673611111097
441.151.146414930555561.143333333333330.00308159722222230.00358506944444459
451.151.147039930555561.142083333333330.00495659722222220.00296006944444427
461.141.139956597222221.14083333333333-0.0008767361111111564.34027777778123e-05
471.141.134956597222221.13916666666667-0.004210069444444450.00504340277777793
481.141.132144097222221.13708333333333-0.004939236111111070.00785590277777803
491.131.134227430555561.135-0.000772569444444473-0.00422743055555541
501.121.134123263888891.132916666666670.00120659722222228-0.0141232638888886
511.131.128810763888891.13041666666667-0.001605902777777710.00118923611111121
521.131.128706597222221.127916666666670.000789930555555550.00129340277777756
531.131.126206597222221.125416666666670.0007899305555554380.00379340277777773
541.121.123706597222221.122916666666670.00078993055555555-0.00370659722222233
551.131.121623263888891.120833333333330.000789930555555550.00837673611111112
561.121.123914930555561.120833333333330.0030815972222223-0.00391493055555547
571.121.127456597222221.12250.0049565972222222-0.00745659722222225
581.111.123289930555561.12416666666667-0.000876736111111156-0.0132899305555556
591.111.122039930555561.12625-0.00421006944444445-0.0120399305555556
601.111.123810763888891.12875-0.00493923611111107-0.0138107638888889
611.111.130477430555561.13125-0.000772569444444473-0.0204774305555555
621.141.134123263888891.132916666666670.001206597222222280.00587673611111095
631.151.132144097222221.13375-0.001605902777777710.0178559027777776
641.151.135373263888891.134583333333330.000789930555555550.0146267361111112
651.161.136206597222221.135416666666670.0007899305555554380.0237934027777780
661.151.136623263888891.135833333333330.000789930555555550.0133767361111112
671.161.136623263888891.135833333333330.000789930555555550.023376736111111
681.13NANA0.0030815972222223NA
691.13NANA0.0049565972222222NA
701.12NANA-0.000876736111111156NA
711.12NANA-0.00421006944444445NA
721.11NANA-0.00493923611111107NA
731.11NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/12rpx1211285418.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/12rpx1211285418.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/2cvhw1211285418.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/2cvhw1211285418.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/3zkzg1211285418.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/3zkzg1211285418.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/4ooda1211285418.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211285475kfvh9qo2d2nag16/4ooda1211285418.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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