Home » date » 2010 » Jul » 02 »

Tijdreeks2-Stap24

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 02 Jul 2010 13:10: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/Jul/02/t1278076342uzquhtfnjbyk65f.htm/, Retrieved Fri, 02 Jul 2010 15:12:28 +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/Jul/02/t1278076342uzquhtfnjbyk65f.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:
Steffi Poppe
 
Dataseries X:
» Textbox « » Textfile « » CSV «
59 58 57 55 53 52 53 55 56 56 57 59 68 68 68 70 66 64 72 80 84 82 83 86 99 100 95 98 103 107 114 123 132 137 141 146 156 156 143 143 151 149 156 166 177 180 189 195 205 209 199 191 198 200 208 224 234 243 249 258 274 270 261 258 261 258 264 270 267 287 297 306 322 323 309 303 306 301 316 327 330 342 359 379
 
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
159NANA1.08778011529030NA
258NANA1.06469246425813NA
357NANA0.993668582652538NA
455NANA0.966966789703818NA
553NANA0.958328967926301NA
652NANA0.930099442449319NA
75353.701106364246656.20833333333330.955394034649310.986944284546185
85556.5499557920575570.9921044875799560.972591388086016
95658.307193236077257.8751.007467701703280.96043038417686
105659.408663550342658.95833333333331.007638109687790.942623460171696
115760.877561516993360.1251.012516615667250.936305571045073
125962.594461109091261.16666666666671.023342688432010.942575412498134
136867.940933034173562.45833333333331.087780115290301.00086938702765
146868.450853014595764.29166666666671.064692464258130.993413478506987
156866.078960746393766.50.9936685826525381.02907187449541
167066.478966792137568.750.9669667897038181.0529646199056
176667.961495975440270.91666666666670.9583289679263010.97113812832859
186468.013521729106573.1250.9300994424493190.940989355835858
197272.172057700875.54166666666670.955394034649310.99761600671671
208077.549500779166678.16666666666670.9921044875799561.03159916177683
218481.227083449826780.6251.007467701703281.03413783226485
228283.549993261612582.91666666666671.007638109687790.981448313744812
238386.696735216508185.6251.012516615667250.95736015655865
248691.03485999176488.95833333333331.023342688432010.94469305503167
2599100.61966066435392.51.087780115290300.983903139270606
26100102.25483875479196.04166666666671.064692464258130.97794883076195
279599.201246834811799.83333333333330.9936685826525380.957649253725535
2898100.68541697791104.1250.9669667897038180.973328640248873
29103104.298136009312108.8333333333330.9583289679263010.987553602979093
30107105.79881157861113.750.9300994424493191.01135351525662
31114113.333617360274118.6250.955394034649311.00587983208554
32123122.359553468195123.3333333333330.9921044875799561.00523413590237
33132128.620043250785127.6666666666671.007467701703281.02627861617668
34137132.546396345181131.5416666666671.007638109687791.03360033752423
35141137.111625038273135.4166666666671.012516615667251.02835919245098
36146142.415190806788139.1666666666671.023342688432011.02517153663808
37156155.18996311475142.6666666666671.087780115290301.00521964738564
38156155.666910711741146.2083333333331.064692464258131.00213975652716
39143148.926078825049149.8750.9936685826525380.960207917432576
40143148.469692502440153.5416666666670.9669667897038180.963159535052243
41151150.777090953738157.3333333333330.9583289679263011.00147840129327
42149150.094797525259161.3750.9300994424493190.992705959544836
43156158.077904649684165.4583333333330.955394034649310.986855186028126
44166168.368399079715169.7083333333330.9921044875799560.985933232764222
45177175.551247021796174.251.007467701703281.00825259291963
46180179.947372421744178.5833333333331.007638109687791.00029246094315
47189184.826470551592182.5416666666671.012516615667251.02258079936252
48195190.981329228624186.6251.023342688432011.02104221804094
49205207.675353677507190.9166666666671.087780115290300.987117615883965
50209208.147376762465195.51.064692464258131.00409624781632
51199199.023536533781200.2916666666670.9936685826525380.999881739947993
52191198.510223869613205.2916666666670.9669667897038180.962167067654178
53198201.648387001159210.4166666666670.9583289679263010.981907184801145
54200200.475183991264215.5416666666670.9300994424493190.997629711659053
55208211.181889742275221.0416666666670.955394034649310.984932942184779
56224224.670328749878226.4583333333330.9921044875799560.997016389508987
57234233.312728586117231.5833333333331.007467701703281.00294570904060
58243238.768247074769236.9583333333331.007638109687791.01772326503660
59249245.408714722349242.3751.012516615667251.01463389465086
60258253.192036829553247.4166666666671.023342688432011.01898939331052
61274274.301885739038252.1666666666671.087780115290300.998899439797052
62270273.004892710189256.4166666666671.064692464258130.98899326425853
63261258.064011486386259.7083333333330.9936685826525381.01137697773782
64258254.231685126295262.9166666666670.9669667897038181.01482236516598
65261255.634252194341266.750.9583289679263011.02098994074386
66258251.824424043153270.750.9300994424493191.02452333994334
67264262.494511019898274.750.955394034649311.00573531604243
68270276.755814347825278.9583333333330.9921044875799560.97558925956535
69267285.281270865645283.1666666666671.007467701703280.935918433025159
70287289.234122401632287.0416666666671.007638109687790.99227573018328
71297294.431394197572290.7916666666671.012516615667251.00872395353569
72306301.331782464542294.4583333333331.023342688432011.01549195208444
73322324.611716071215298.4166666666671.087780115290300.991954338238853
74323322.557454484203302.9583333333331.064692464258131.00137198973282
75309306.008520599371307.9583333333330.9936685826525381.00977580426444
76303302.539734328582312.8750.9669667897038181.00152133957690
77306304.509029558582317.750.9583289679263011.00489630945781
78301300.770907202049323.3750.9300994424493191.00076168536406
79316NANA0.95539403464931NA
80327NANA0.992104487579956NA
81330NANA1.00746770170328NA
82342NANA1.00763810968779NA
83359NANA1.01251661566725NA
84379NANA1.02334268843201NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/1e2n61278076214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/1e2n61278076214.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/2e2n61278076214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/2e2n61278076214.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/3e2n61278076214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/3e2n61278076214.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/47u491278076214.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278076342uzquhtfnjbyk65f/47u491278076214.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