Home » date » 2010 » Dec » 15 »

Decomposition van reeks 'fruistindex denemarken'

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 15 Dec 2010 21:27:25 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh.htm/, Retrieved Wed, 15 Dec 2010 22:25:58 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,6 100,1 98,8 98,3 102,8 103,6 105,2 100,1 98,2 98,4 97,4 98,4 100,3 101,1 104,1 107,3 110,1 112,6 114,3 115,3 109,9 108,2 103,2 101,8 105,6 108,2 109,8 114,6 117,2 116,5 116,1 112,1 106,8 106,9 104,5 103 105,9 107,7 107,1 112,5 114,5 114,6 113,1 112,8 111,9 112 112,4 110 112,3 109,6 111,9 110,8 110,4 110,8 114 108,4 110,5 105,1 102,3 104,3 103,4 102,4 104,5 107,3 110,1 111,8 111,8 105,7 106 106,4 107,1 111,5 109,6 109,9 109,3 111,4 112,9 115,5 118,4 116,2 113,3 113,8 114,1 117,1 115,5 115,2 114,2 115,3 118,8 118 118,1 111,8 112 114,3 115 118,5 117,6 119,1 120,6 123,6 122,7 123,8 123,1 124,5 120,7 118,7 119 122,3 118,6 118,1 118,2 120,8 119,7 119,7 117,1 114,5 116,5 116,4 114,9 115,5
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
198.6NANA-1.88900462962963NA
2100.1NANA-1.73298611111111NA
398.8NANA-0.951041666666671NA
498.3NANA1.53645833333333NA
5102.8NANA2.7943287037037NA
6103.6NANA3.40081018518519NA
7105.2104.214699074074100.06254.152199074074070.985300925925927
8100.1101.129050925926100.1750.954050925925927-1.02905092592592
998.299.2628472222222100.4375-1.17465277777778-1.0628472222222
1098.499.053587962963101.033333333333-1.97974537037037-0.653587962962959
1197.498.5725694444444101.7125-3.13993055555556-1.17256944444443
1298.4100.421180555556102.391666666667-1.97048611111111-2.02118055555553
13100.3101.256828703704103.145833333333-1.88900462962963-0.956828703703707
14101.1102.425347222222104.158333333333-1.73298611111111-1.32534722222222
15104.1104.328125105.279166666667-0.951041666666671-0.228124999999991
16107.3107.711458333333106.1751.53645833333333-0.411458333333314
17110.1109.619328703704106.8252.79432870370370.480671296296293
18112.6110.609143518519107.2083333333333.400810185185191.99085648148149
19114.3111.723032407407107.5708333333334.152199074074072.57696759259261
20115.3109.041550925926108.08750.9540509259259276.25844907407409
21109.9107.446180555556108.620833333333-1.174652777777782.45381944444446
22108.2107.18275462963109.1625-1.979745370370371.01724537037039
23103.2106.622569444444109.7625-3.13993055555556-3.42256944444443
24101.8108.250347222222110.220833333333-1.97048611111111-6.45034722222219
25105.6108.569328703704110.458333333333-1.88900462962963-2.96932870370368
26108.2108.667013888889110.4-1.73298611111111-0.467013888888857
27109.8109.186458333333110.1375-0.9510416666666710.613541666666677
28114.6111.490625109.9541666666671.536458333333333.10937500000001
29117.2112.74849537037109.9541666666672.79432870370374.45150462962965
30116.5113.459143518518110.0583333333333.400810185185193.04085648148151
31116.1114.273032407407110.1208333333334.152199074074071.8269675925926
32112.1111.066550925926110.11250.9540509259259271.03344907407408
33106.8108.804513888889109.979166666667-1.17465277777778-2.00451388888887
34106.9107.799421296296109.779166666667-1.97974537037037-0.899421296296282
35104.5106.439236111111109.579166666667-3.13993055555556-1.93923611111109
36103107.417013888889109.3875-1.97048611111111-4.41701388888887
37105.9107.294328703704109.183333333333-1.88900462962963-1.39432870370369
38107.7107.354513888889109.0875-1.732986111111110.345486111111128
39107.1108.378125109.329166666667-0.951041666666671-1.27812499999999
40112.5111.290625109.7541666666671.536458333333331.20937500000002
41114.5113.090162037037110.2958333333332.79432870370371.40983796296298
42114.6114.317476851852110.9166666666673.400810185185190.282523148148144
43113.1115.627199074074111.4754.15219907407407-2.52719907407408
44112.8112.774884259259111.8208333333330.9540509259259270.0251157407407447
45111.9110.925347222222112.1-1.174652777777780.974652777777777
46112110.249421296296112.229166666667-1.979745370370371.7505787037037
47112.4108.847569444444111.9875-3.139930555555563.55243055555557
48110109.687847222222111.658333333333-1.970486111111110.312152777777769
49112.3109.64849537037111.5375-1.889004629629632.65150462962964
50109.6109.658680555556111.391666666667-1.73298611111111-0.0586805555555543
51111.9110.198958333333111.15-0.9510416666666711.70104166666668
52110.8112.340625110.8041666666671.53645833333333-1.54062500000002
53110.4112.890162037037110.0958333333332.7943287037037-2.49016203703702
54110.8112.838310185185109.43753.40081018518519-2.0383101851852
55114112.981365740741108.8291666666674.152199074074071.01863425925926
56108.4109.112384259259108.1583333333330.954050925925927-0.712384259259252
57110.5106.375347222222107.55-1.174652777777784.12465277777778
58105.1105.116087962963107.095833333333-1.97974537037037-0.0160879629629562
59102.3103.797569444444106.9375-3.13993055555556-1.49756944444444
60104.3104.996180555556106.966666666667-1.97048611111111-0.696180555555529
61103.4105.027662037037106.916666666667-1.88900462962963-1.627662037037
62102.4104.979513888889106.7125-1.73298611111111-2.57951388888885
63104.5105.461458333333106.4125-0.951041666666671-0.961458333333312
64107.3107.815625106.2791666666671.53645833333333-0.515624999999972
65110.1109.327662037037106.5333333333332.79432870370370.772337962962979
66111.8110.434143518518107.0333333333333.400810185185191.3658564814815
67111.8111.743865740741107.5916666666674.152199074074070.0561342592592666
68105.7109.116550925926108.16250.954050925925927-3.4165509259259
69106107.500347222222108.675-1.17465277777778-1.5003472222222
70106.4107.066087962963109.045833333333-1.97974537037037-0.666087962962948
71107.1106.193402777778109.333333333333-3.139930555555560.906597222222231
72111.5107.633680555556109.604166666667-1.970486111111113.86631944444447
73109.6108.144328703704110.033333333333-1.889004629629631.45567129629632
74109.9109.012847222222110.745833333333-1.732986111111110.8871527777778
75109.3110.536458333333111.4875-0.951041666666671-1.23645833333336
76111.4113.636458333333112.11.53645833333333-2.23645833333332
77112.9115.494328703704112.72.7943287037037-2.5943287037037
78115.5116.625810185185113.2253.40081018518519-1.1258101851852
79118.4117.856365740741113.7041666666674.152199074074070.543634259259264
80116.2115.124884259259114.1708333333330.9540509259259271.07511574074076
81113.3113.421180555556114.595833333333-1.17465277777778-0.12118055555554
82113.8112.98275462963114.9625-1.979745370370370.817245370370372
83114.1112.230902777778115.370833333333-3.139930555555561.86909722222224
84117.1113.750347222222115.720833333333-1.970486111111113.34965277777778
85115.5113.92349537037115.8125-1.889004629629631.57650462962965
86115.2113.883680555556115.616666666667-1.732986111111111.31631944444446
87114.2114.428125115.379166666667-0.951041666666671-0.228124999999977
88115.3116.882291666667115.3458333333331.53645833333333-1.58229166666662
89118.8118.19849537037115.4041666666672.79432870370370.601504629629659
90118118.900810185185115.53.40081018518519-0.900810185185165
91118.1119.798032407407115.6458333333334.15219907407407-1.6980324074074
92111.8116.849884259259115.8958333333330.954050925925927-5.04988425925926
93112115.150347222222116.325-1.17465277777778-3.15034722222221
94114.3114.95775462963116.9375-1.97974537037037-0.657754629629622
95115114.305902777778117.445833333333-3.139930555555560.694097222222254
96118.5115.879513888889117.85-1.970486111111112.62048611111115
97117.6116.41099537037118.3-1.889004629629631.18900462962965
98119.1117.304513888889119.0375-1.732986111111111.79548611111113
99120.6118.978125119.929166666667-0.9510416666666711.621875
100123.6122.011458333333120.4751.536458333333331.58854166666667
101122.7123.619328703704120.8252.7943287037037-0.919328703703684
102123.8124.550810185185121.153.40081018518519-0.750810185185173
103123.1125.502199074074121.354.15219907407407-2.40219907407406
104124.5122.304050925926121.350.9540509259259272.19594907407408
105120.7120.033680555556121.208333333333-1.174652777777780.666319444444454
106118.7119.011921296296120.991666666667-1.97974537037037-0.311921296296276
107119117.610069444444120.75-3.139930555555561.38993055555555
108122.3118.483680555556120.454166666667-1.970486111111113.81631944444443
109118.6118.144328703704120.033333333333-1.889004629629630.455671296296302
110118.1117.633680555556119.366666666667-1.732986111111110.466319444444437
111118.2117.823958333333118.775-0.9510416666666710.376041666666666
112120.8120.040625118.5041666666671.536458333333330.759375000000006
113119.7121.031828703704118.23752.7943287037037-1.33182870370369
114119.7121.184143518519117.7833333333333.40081018518519-1.48414351851852
115117.1NANA4.15219907407407NA
116114.5NANA0.954050925925927NA
117116.5NANA-1.17465277777778NA
118116.4NANA-1.97974537037037NA
119114.9NANA-3.13993055555556NA
120115.5NANA-1.97048611111111NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/1dq6h1292448439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/1dq6h1292448439.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/2dq6h1292448439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/2dq6h1292448439.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/36zn21292448439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/36zn21292448439.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/4mbtt1292448439.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292448356mteaziea1riambh/4mbtt1292448439.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