Home » date » 2008 » May » 24 »

Plantaardige stoffen - Joyce Pauwels - Classical Decomposition

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 24 May 2008 10:00:29 -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/24/t1211645415xxyvxeyl3iql3pb.htm/, Retrieved Sat, 24 May 2008 18:10:15 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
79,2 81,5 81,5 82 85,8 88,2 88 88,8 89 90,4 90,9 94,6 97,9 101,7 102,3 103,5 103,6 102,3 101,6 104,3 110,8 112,1 111,1 114,4 115 115,3 114,1 114,8 114,5 114,1 112,3 113 112,2 113,7 113,6 115,8 117,9 120,1 118,8 114,7 110,9 112,9 113,3 114,3 116,5 114,3 115,9 120,1 122,6 122,4 123,1 127,9 130,9 135 134,9 130,2 130,8 132,6 138,6 146,2 149,3 149,9 156,8 158,8 156,7 159,9 158,2 157,5 159,1 160,6 161,6 161,3
 
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 time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
179.2NANA2.05112847222222NA
281.5NANA2.65633680555555NA
381.5NANA1.48967013888889NA
482NANA1.26467013888890NA
585.8NANA0.0782118055555608NA
688.2NANA0.143836805555554NA
78885.958420138888987.4375-1.479079861111122.04157986111112
888.886.466753472222289.0583333333333-2.591579861111102.33324652777777
98989.230295138888990.7666666666667-1.53637152777778-0.230295138888863
1090.490.449045138888992.5291666666667-2.08012152777778-0.0490451388888715
1190.992.582378472222294.1666666666667-1.58428819444444-1.68237847222221
1294.697.083420138888995.49583333333331.58758680555556-2.48342013888890
1397.998.701128472222296.652.05112847222222-0.801128472222217
14101.7100.51883680555697.86252.656336805555551.18116319444445
15102.3100.90633680555699.41666666666671.489670138888891.39366319444446
16103.5102.493836805556101.2291666666671.264670138888901.00616319444445
17103.6103.053211805556102.9750.07821180555556080.546788194444474
18102.3104.785503472222104.6416666666670.143836805555554-2.48550347222221
19101.6104.700086805556106.179166666667-1.47907986111112-3.10008680555555
20104.3104.866753472222107.458333333333-2.59157986111110-0.566753472222231
21110.8106.980295138889108.516666666667-1.536371527777783.81970486111112
22112.1107.399045138889109.479166666667-2.080121527777784.70095486111113
23111.1108.819878472222110.404166666667-1.584288194444442.28012152777779
24114.4112.937586805556111.351.587586805555561.46241319444445
25115114.338628472222112.28752.051128472222220.661371527777789
26115.3115.752170138889113.0958333333332.65633680555555-0.452170138888903
27114.1115.006336805556113.5166666666671.48967013888889-0.906336805555526
28114.8114.906336805556113.6416666666671.26467013888890-0.106336805555529
29114.5113.890711805556113.81250.07821180555556080.609288194444474
30114.1114.118836805556113.9750.143836805555554-0.0188368055555372
31112.3112.675086805556114.154166666667-1.47907986111112-0.375086805555554
32113111.883420138889114.475-2.591579861111101.11657986111112
33112.2113.334461805556114.870833333333-1.53637152777778-1.13446180555553
34113.7112.982378472222115.0625-2.080121527777780.71762152777778
35113.6113.324045138889114.908333333333-1.584288194444440.275954861111117
36115.8116.295920138889114.7083333333331.58758680555556-0.495920138888877
37117.9116.751128472222114.72.051128472222221.1488715277778
38120.1117.452170138889114.7958333333332.656336805555552.64782986111113
39118.8116.518836805556115.0291666666671.489670138888892.28116319444446
40114.7116.498003472222115.2333333333331.26467013888890-1.79800347222219
41110.9115.432378472222115.3541666666670.0782118055555608-4.53237847222219
42112.9115.773003472222115.6291666666670.143836805555554-2.87300347222221
43113.3114.525086805556116.004166666667-1.47907986111112-1.22508680555555
44114.3113.704253472222116.295833333333-2.591579861111100.595746527777777
45116.5115.034461805556116.570833333333-1.536371527777781.46553819444445
46114.3115.219878472222117.3-2.08012152777778-0.919878472222194
47115.9117.099045138889118.683333333333-1.58428819444444-1.19904513888886
48120.1122.025086805556120.43751.58758680555556-1.92508680555555
49122.6124.309461805556122.2583333333332.05112847222222-1.70946180555555
50122.4126.477170138889123.8208333333332.65633680555555-4.07717013888887
51123.1126.568836805556125.0791666666671.48967013888889-3.46883680555555
52127.9127.702170138889126.43751.264670138888900.197829861111103
53130.9128.224045138889128.1458333333330.07821180555556082.67595486111108
54135130.323003472222130.1791666666670.1438368055555544.67699652777776
55134.9130.900086805556132.379166666667-1.479079861111123.99991319444447
56130.2132.045920138889134.6375-2.59157986111110-1.84592013888886
57130.8135.651128472222137.1875-1.53637152777778-4.8511284722222
58132.6137.799045138889139.879166666667-2.08012152777778-5.19904513888889
59138.6140.657378472222142.241666666667-1.58428819444444-2.05737847222224
60146.2145.941753472222144.3541666666671.587586805555560.258246527777771
61149.3148.413628472222146.36252.051128472222220.886371527777811
62149.9151.127170138889148.4708333333332.65633680555555-1.22717013888888
63156.8152.277170138889150.78751.489670138888894.52282986111109
64158.8154.398003472222153.1333333333331.264670138888904.40199652777775
65156.7155.336545138889155.2583333333330.07821180555556081.36345486111111
66159.9156.989670138889156.8458333333330.1438368055555542.91032986111111
67158.2NANA-1.47907986111112NA
68157.5NANA-2.59157986111110NA
69159.1NANA-1.53637152777778NA
70160.6NANA-2.08012152777778NA
71161.6NANA-1.58428819444444NA
72161.3NANA1.58758680555556NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645415xxyvxeyl3iql3pb/1kgpj1211644821.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645415xxyvxeyl3iql3pb/1kgpj1211644821.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645415xxyvxeyl3iql3pb/20q421211644821.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645415xxyvxeyl3iql3pb/20q421211644821.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645415xxyvxeyl3iql3pb/3fpcm1211644821.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211645415xxyvxeyl3iql3pb/3fpcm1211644821.ps (open in new window)


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