Home » date » 2010 » Aug » 19 »

Tijdreeks B - Stap 24

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 19 Aug 2010 12:53:16 +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/Aug/19/t1282222461flm4jag0m2621q6.htm/, Retrieved Thu, 19 Aug 2010 14:54:52 +0200
 
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/Aug/19/t1282222461flm4jag0m2621q6.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:
Quaglia Laura
 
Dataseries X:
» Textbox « » Textfile « » CSV «
93 92 91 89 87 86 87 89 90 90 91 93 93 87 89 92 98 92 92 87 92 98 101 102 102 90 87 92 105 90 88 83 98 109 118 118 115 107 101 111 128 115 111 105 120 132 135 142 139 127 113 130 143 139 137 134 139 157 152 153 147 132 117 123 139 134 134 128 118 144 140 151 144 135 122 124 146 146 147 148 132 161 159 173
 
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
193NANA1.06032665885055NA
292NANA0.964717831922137NA
391NANA0.897206751729183NA
489NANA0.950709737393792NA
587NANA1.06206980447575NA
686NANA0.986625000979252NA
78786.315769893592589.83333333333330.960843449650381.00792705790901
88982.69937117113289.6250.9227265960516831.07618714313837
99086.508628444516489.33333333333330.9683801691550341.04035865113412
109094.999100427498789.3751.062926997790190.947377391943686
119196.351392011773289.95833333333331.071066886652410.944459629487041
129399.044277125033490.66666666666671.092400115349630.938973989204817
139396.62226678775691.1251.060326658850550.9625110555964
148788.03050216289591.250.9647178319221370.988293805697165
158981.87011609528891.250.8972067517291831.08708774635685
169287.148392594430991.66666666666660.9507097373937921.05567064705539
179898.152951096967592.41666666666671.062069804475750.99844170658897
189291.961671966274593.20833333333330.9866250009792521.00041678269768
199290.279249123400393.95833333333330.960843449650381.01906031444998
208787.159216385381994.45833333333330.9227265960516830.99817326965541
219291.511925985150794.50.9683801691550341.00533344708457
2298100.35802404135894.41666666666671.062926997790190.976503881340013
23101101.43895972337294.70833333333331.071066886652410.995672671283605
24102103.68697761526994.91666666666671.092400115349630.983730091723486
25102100.37759037118594.66666666666671.060326658850551.01616306610684
269091.005048811321694.33333333333330.9647178319221370.988956120298278
278784.71127080909794.41666666666670.8972067517291831.02701800089932
289290.436263769584595.1250.9507097373937921.01729103088999
29105102.26847158931196.29166666666671.062069804475751.02670938920118
309096.360375095640397.66666666666670.9866250009792520.933993873629825
318895.003396084181398.8750.960843449650380.92628267648479
328392.3880004296747100.1250.9227265960516830.89838506747615
339898.2098888218064101.4166666666670.9683801691550340.997862854501473
34109109.260037647850102.7916666666671.062926997790190.997620011365102
35118111.971117442121104.5416666666671.071066886652411.05384319363425
36118116.386128956209106.5416666666671.092400115349631.01386652394289
37115115.089622762736108.5416666666671.060326658850550.999221278508132
38107106.520927274736110.4166666666670.9647178319221371.00449745169819
39101100.711457881601112.250.8972067517291831.00286503764784
40111108.499748780066114.1250.9507097373937921.02304384340098
41128122.978832776588115.7916666666671.062069804475751.04082952415505
42115115.928437615062117.50.9866250009792520.991991286744112
43111114.820792233220119.50.960843449650380.96672386456401
44105111.957493654271121.3333333333330.9227265960516830.937855935970165
45120118.787967416351122.6666666666670.9683801691550341.01020332791284
46132131.758659101076123.9583333333331.062926997790191.00183168909406
47135134.285010914046125.3751.071066886652411.00532441469891
48142138.7348146494031271.092400115349631.02353544320399
49139136.870499546625129.0833333333331.060326658850551.01555850574396
50127126.739805168771131.3750.9647178319221371.00205298430815
51113119.664950511880133.3750.8972067517291830.944303235965337
52130128.543879076786135.2083333333330.9507097373937921.01132781221224
53143145.459310304658136.9583333333331.062069804475750.983092795507504
54139136.277578260259138.1250.9866250009792521.01997703345257
55137133.477169213932138.9166666666670.960843449650381.0263927592023
56134128.681913207708139.4583333333330.9227265960516831.04132738362157
57139135.411826986846139.8333333333330.9683801691550341.02649822466026
58157148.499759316272139.7083333333331.062926997790191.05724077077879
59152149.146063966348139.251.071066886652411.01913517499393
60153151.707066019180138.8751.092400115349631.00852256928267
61147146.899422528253138.5416666666671.060326658850551.00068466893890
62132133.291847110575138.1666666666670.9647178319221370.990308131077938
63117122.954708601553137.0416666666670.8972067517291830.95156990188273
64123128.940008134033135.6250.9507097373937920.953932001246204
65139142.936894519028134.5833333333331.062069804475750.972457114503042
66134132.2077501312201340.9866250009792521.01355631471681
67134128.552846534474133.7916666666670.960843449650381.04237287319862
68128123.453129163415133.7916666666670.9227265960516831.03683074594704
69118129.883990187919134.1250.9683801691550340.908503040515425
70144142.830815328057134.3751.062926997790191.00818580128705
71140144.281635189469134.7083333333331.071066886652410.970324461710972
72151148.020215629875135.51.092400115349631.02013092845085
73144144.778769210552136.5416666666671.060326658850550.994620970914465
74135133.050667652595137.9166666666670.9647178319221371.01465105272899
75122125.010807407600139.3333333333330.8972067517291830.975915623056631
76124133.693556821002140.6250.9507097373937920.927494211003898
77146150.946670961116142.1251.062069804475750.967229015852952
78146141.909562640849143.8333333333330.9866250009792521.0288242545677
79147NANA0.96084344965038NA
80148NANA0.922726596051683NA
81132NANA0.968380169155034NA
82161NANA1.06292699779019NA
83159NANA1.07106688665241NA
84173NANA1.09240011534963NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/16ynb1282222390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/16ynb1282222390.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/26ynb1282222390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/26ynb1282222390.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/3z7me1282222390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/3z7me1282222390.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/4ag3z1282222390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282222461flm4jag0m2621q6/4ag3z1282222390.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