Home » date » 2009 » May » 28 »

Opgave 9 Oefening 2 Anke Winckelmans

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 28 May 2009 14:20:25 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x.htm/, Retrieved Thu, 28 May 2009 22:21:27 +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/2009/May/28/t1243542082n8dcrffv9xd3p9x.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 «
3779,7 3795,5 3813,1 3826,9 3833,3 3844,8 3851,3 3851,8 3854,1 3858,4 3861,6 3856,3 3855,8 3860,4 3855,1 3839,5 3833 3833,6 3826,8 3818,2 3811,4 3806,8 3810,3 3818,2 3858,9 3867,8 3872,3 3873,3 3876,7 3882,6 3883,5 3882,2 3888,1 3893,7 3901,9 3914,3 3930,3 3948,3 3971,5 3990,1 3993 3998 4015,8 4041,2 4060,7 4076,7 4103 4125,3 4139,7 4146,7 4158 4155,1 4144,8 4148,2 4142,5 4142,1 4145,4 4146,3 4143,5 4149,2 4158,9 4166,1 4179,1 4194,4 4211,7 4226,3 4235,8 4243,6 4258,7 4278,2 4298 4315,1 4334,3 4356 4374 4395,5
 
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
13779.7NANA1.00159506626097NA
23795.5NANA1.00229277370746NA
33813.1NANA1.00295040237925NA
43826.9NANA1.00201952762084NA
53833.3NANA1.00057170934675NA
63844.8NANA1.00018478332918NA
73851.33834.993533716753838.73750.9990246881212261.00425201923807
83851.83837.438108654273844.61250.9981339104147091.00374257276315
93854.13840.800847011143849.066666666670.997852513252861.00346259895230
103858.43841.561561539523851.341666666670.9974605978971451.00438322754711
113861.63846.817017786643851.854166666670.9986922794420381.00384291276268
123856.33848.377660579993851.3750.9992217482275781.00205861797327
133855.83856.028325659773849.88751.001595066260970.99994078734893
143860.43856.288037080353847.466666666671.002292773707461.00106630077425
153855.13855.629694986523844.28751.002950402379250.999862617774936
163839.53848.114043061413840.358333333331.002019527620840.997761489663503
1738333838.263950883533836.070833333331.000571709346750.99862855943445
183833.63833.053986954993832.345833333331.000184783329181.00014244856630
193826.83827.1511899153830.88750.9990246881212260.999908237250744
203818.23824.175404319633831.3250.9981339104147090.99843746594027
213811.43824.120079164593832.350.997852513252860.996673723915235
223806.83824.737726121663834.4750.9974605978971450.995310076819347
233810.33832.685522032543837.704166666670.9986922794420380.99415931155743
243818.23838.576960599453841.566666666670.9992217482275780.994691532615182
253858.93852.105411650243845.970833333331.001595066260971.00176386355607
263867.83859.8294715474538511.002292773707461.00206499497227
273872.33868.241796296443856.86251.002950402379251.00104910807475
283873.33871.481973461803863.679166666671.002019527620841.00046959447329
293876.73873.329820247343871.116666666671.000571709346751.00087009883203
303882.63879.654262984943878.93751.000184783329181.00075927822826
313883.53882.126685981743885.916666666670.9990246881212261.00035375301461
323882.23884.982553920363892.245833333330.9981339104147090.999283766688335
333888.13891.358707682623899.733333333330.997852513252860.999162578439201
343893.73898.807487687173908.733333333330.9974605978971450.998689987206781
353901.93913.321601161823918.445833333330.9986922794420380.997081353815022
363914.33925.042949212753928.10.9992217482275780.997262972825583
373930.33944.702875526073938.420833333331.001595066260970.996348805986015
383948.33959.61606960983950.558333333331.002292773707460.9971421295876
393971.53976.071501432243964.3751.002950402379250.998850246674238
403990.13987.227754146113979.191666666671.002019527620841.00072036162241
4139933997.479924133333995.195833333331.000571709346750.998879312912547
4239984013.108085137234012.366666666671.000184783329180.996235315666382
434015.84025.952940248264029.883333333330.9990246881212260.997478127439902
444041.24039.323168709524046.8750.9981339104147091.00046464004292
454060.74054.187449251464062.91250.997852513252861.00160637632820
464076.74067.203773127154077.558333333330.9974605978971451.00233482938219
4741034085.408764563184090.758333333330.9986922794420381.00430586911876
484125.34100.148233741734103.341666666670.9992217482275781.00613435535118
494139.74121.442671593374114.879166666671.001595066260971.00442983922413
504146.74133.818729900054124.36251.002292773707461.00311607037986
5141584144.287178711294132.095833333331.002950402379251.00330884919345
524155.14146.882865547034138.5251.002019527620841.00198152075171
534144.84145.481156140874143.11251.000571709346750.999835687073415
544148.24146.561907289534145.795833333331.000184783329181.00039504841531
554142.54143.546471245864147.591666666670.9990246881212260.99974744551482
564142.14141.457221092714149.20.9981339104147091.00015520597533
574145.44141.973524104884150.88750.997852513252861.00082725683184
584146.34142.857003391834153.404166666670.9974605978971451.00083106817478
594143.54152.391887988924157.829166666670.9986922794420380.997858610596307
604149.24160.630293477154163.870833333330.9992217482275780.997252749542521
614158.94177.665541312824171.01251.001595066260970.99550812741536
624166.14188.71096414014179.129166666671.002292773707460.994601927816536
634179.14200.435685404484188.079166666671.002950402379250.994920601813135
644194.44206.77440772924198.295833333331.002019527620840.997058457019596
654211.74212.636194033194210.229166666671.000571709346750.999777765278066
664226.34224.359613686154223.579166666671.000184783329181.00045933265425
674235.84233.666823320134237.80.9990246881212261.00050386031043
684243.64245.084315450224253.020833333330.9981339104147090.999650344883653
694258.74259.886429420924269.054166666670.997852513252860.999721488016035
704278.24274.671421403944285.554166666670.9974605978971451.00082546194741
714298NANA0.998692279442038NA
724315.1NANA0.999221748227578NA
734334.3NANANANA
744356NANANANA
754374NANANANA
764395.5NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/1ouit1243542023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/1ouit1243542023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/2ra4r1243542023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/2ra4r1243542023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/3yg511243542023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/3yg511243542023.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/4je8g1243542023.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243542082n8dcrffv9xd3p9x/4je8g1243542023.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