Home » date » 2009 » Jan » 27 »

Robbe Leys_2MAR03A_opgave 9_verbetering

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 27 Jan 2009 09:47:34 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu.htm/, Retrieved Tue, 27 Jan 2009 17:49:02 +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/2009/Jan/27/t12330749389g906mcj766ktiu.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
141086NANA1.05825078452100NA
239690NANA1.09997146654556NA
34312939398.110532330439800.3750.9898929478008781.09469716738340
43786332234.575475655237839.1250.8518848011325631.17460830308113
53595336208.0505923859342151.058250784521000.992955970061543
62913332947.720330305829953.251.099971466545560.8842189902044
72469325952.518358969526217.50.9898929478008780.951468356883593
82220520612.524105003924196.3750.8518848011325631.07725768503089
92172524965.061976286823590.8751.058250784521000.870216145292794
102719224319.2691538558221091.099971466545561.11812570632653
112179022754.792927717322987.1250.9898929478008780.957600452318683
121325321621.475166345325380.750.8518848011325630.612955401888065
133770228709.946940010527129.6251.058250784521001.31320340224865
143036433661.189322794030601.8751.099971466545560.902047747298066
153260931433.679347561431754.6250.9898929478008781.03739048933607
163021226013.1542873840305360.8518848011325631.16141240182673
172996531149.744123723629435.1251.058250784521000.96196616835702
182835230371.3121627895276111.099971466545560.933512514969191
192581425196.611356705125453.8750.9898929478008781.02450284423388
202241420724.866413153324328.250.8518848011325631.08150274907319
212050625331.08446638323936.751.058250784521000.809519230304317
222880624675.797405449922433.1251.099971466545561.16737868797861
232222823183.416574115023420.1250.9898929478008780.958788793228096
241397122386.6806889626262790.8518848011325630.624076440545657
253684530366.241699133928694.751.058250784521001.21335397264690
263533836183.286399149632894.751.099971466545560.97663876106153
273502233904.575881890934250.750.9898929478008781.03295791464850
283477726906.781443772315850.8518848011325631.29249944192228
292688730301.688401278128633.751.058250784521000.887310292546798
302397027417.063796514824925.251.099971466545560.874273050458709
312278021835.924798921122058.8750.9898929478008781.04323495385575
321735118268.350103487421444.6250.8518848011325630.949784731610094
332138222061.486386257320847.1251.058250784521000.969200335174126
342456121390.182634878319446.1251.099971466545561.14823704029303
351740919781.0307759049199830.9898929478008780.880085582860814
361151418369.404938021721563.250.8518848011325630.626803102160803
373151424745.739501194823383.6251.058250784521001.27351215341447
382707129384.775253731426714.1251.099971466545560.921259385727729
392946227121.458193703927398.3750.9898929478008781.08629852383230
402610522025.694504482725855.250.8518848011325631.18520666827042
412239725908.227987991124482.1251.058250784521000.864474405983356
422384324760.907697673922510.51.099971466545560.962929157974282
432170521089.050569805321304.3750.9898929478008781.02920707255909
441808918131.835564105921284.3750.8518848011325630.997637549493847
452076422189.799293880520968.3751.058250784521000.935745282100245
462531622165.112533059720150.6251.099971466545561.14215526594962
471770420531.493366956520741.1250.9898929478008780.862285060496035
481554818875.743966694922157.6250.8518848011325630.82370263272449
492802926464.47105660525007.751.058250784521001.05911808855158
502938332350.435823971629410.251.099971466545560.908272153113538
513643830490.930051399630802.250.9898929478008781.19504390120522
523203425131.027575811229500.50.8518848011325631.27467927458856
532267928110.580151927426563.251.058250784521000.806778084174297
542431924690.922013114922446.8751.099971466545560.984936892477432
551800420139.990706101220345.6250.9898929478008780.893942815700796
561753716922.159146497719864.3750.8518848011325631.03633347542589
572036620972.281766289119817.8751.058250784521000.97109128262507
582278221446.418676105419497.251.099971466545561.06227526115503
591916919998.930961039620203.1250.9898929478008780.958501233758124
601380718508.368646206521726.3750.8518848011325630.745986870259898
612974324676.688637504823318.3751.058250784521001.20530758550785
622559128757.241532067226143.6251.099971466545560.889897592279965
632909626539.772350252426810.750.9898929478008781.09631686421467
642648222213.002675131726075.1250.8518848011325631.19218461309815
652240526314.4640078991248661.058250784521000.851432884715966
662704424756.232818941022506.251.099971466545561.09241176546492
671797020982.884551153721197.1250.9898929478008780.856412280027151
681873016994.782325794219949.6250.8518848011325631.10210296554208
691968420218.807207710119105.8751.058250784521000.973549022837204
701978519981.531675533418165.51.099971466545560.990164333809603
7118479NANA0.989892947800878NA
7210698NANA0.851884801132563NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/14wof1233074852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/14wof1233074852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/2j4v51233074852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/2j4v51233074852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/3rht21233074852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/3rht21233074852.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/4yaz81233074852.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jan/27/t12330749389g906mcj766ktiu/4yaz81233074852.ps (open in new window)


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