Home » date » 2008 » May » 28 »

DecompositieOpg9Oef2Verbetering-GrietjeCordeel

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 28 May 2008 12:38:54 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/28/t1212000232etk26xupf1c1101.htm/, Retrieved Wed, 28 May 2008 20:43:52 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,44 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,57 1,58 1,58 1,58 1,58 1,59 1,6 1,6 1,61 1,61 1,61 1,62 1,63 1,63 1,64 1,64 1,64 1,64 1,64 1,65 1,65 1,65 1,65
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.43NANA-0.00723958333333331NA
21.43NANA-0.0104687500000000NA
31.43NANA0.00859375NA
41.43NANA0.00755208333333328NA
51.43NANA0.00390624999999999NA
61.43NANA0.000156250000000011NA
71.431.426406251.43-0.003593750000000020.00359375000000006
81.431.427552083333331.43-0.002447916666666670.00244791666666666
91.431.435989583333331.430.00598958333333342-0.00598958333333344
101.431.431822916666671.430.00182291666666666-0.00182291666666656
111.431.430052083333331.435.20833333333831e-05-5.2083333333286e-05
121.431.425677083333331.43-0.004322916666666690.00432291666666673
131.431.422760416666671.43-0.007239583333333310.00723958333333341
141.431.419947916666671.43041666666667-0.01046875000000000.0100520833333335
151.431.441510416666671.432916666666670.00859375-0.0115104166666664
161.431.444635416666671.437083333333330.00755208333333328-0.0146354166666667
171.431.445156251.441250.00390624999999999-0.0151562500000000
181.431.445572916666671.445416666666670.000156250000000011-0.0155729166666667
191.431.445989583333331.44958333333333-0.00359375000000002-0.0159895833333332
201.441.451302083333331.45375-0.00244791666666667-0.0113020833333333
211.481.463906251.457916666666670.005989583333333420.0160937500000000
221.481.463906251.462083333333330.001822916666666660.0160937500000002
231.481.466302083333331.466255.20833333333831e-050.0136979166666671
241.481.466093751.47041666666667-0.004322916666666690.0139062500000002
251.481.467343751.47458333333333-0.007239583333333310.0126562500000005
261.481.467864583333331.47833333333333-0.01046875000000000.0121354166666670
271.481.488593751.480.00859375-0.00859374999999973
281.481.487552083333331.480.00755208333333328-0.00755208333333313
291.481.483906251.480.00390624999999999-0.00390624999999978
301.481.480156251.480.000156250000000011-0.000156249999999858
311.481.476406251.48-0.003593750000000020.00359375000000028
321.481.477552083333331.48-0.002447916666666670.00244791666666688
331.481.485989583333331.480.00598958333333342-0.00598958333333321
341.481.481822916666671.480.00182291666666666-0.00182291666666634
351.481.480052083333331.485.20833333333831e-05-5.20833333330639e-05
361.481.475677083333331.48-0.004322916666666690.00432291666666695
371.481.472760416666671.48-0.007239583333333310.00723958333333363
381.481.469531251.48-0.01046875000000000.0104687500000002
391.481.488593751.480.00859375-0.00859374999999973
401.481.487552083333331.480.00755208333333328-0.00755208333333313
411.481.483906251.480.00390624999999999-0.00390624999999978
421.481.480156251.480.000156250000000011-0.000156249999999858
431.481.476406251.48-0.003593750000000020.00359375000000028
441.481.477552083333331.48-0.002447916666666670.00244791666666688
451.481.489739583333331.483750.00598958333333342-0.00973958333333313
461.481.493489583333331.491666666666670.00182291666666666-0.0134895833333331
471.481.500052083333331.55.20833333333831e-05-0.0200520833333331
481.481.504010416666671.50833333333333-0.00432291666666669-0.0240104166666664
491.481.509427083333331.51666666666667-0.00723958333333331-0.029427083333333
501.481.514947916666671.52541666666667-0.0104687500000000-0.0349479166666666
511.571.543593751.5350.008593750.0264062500000002
521.581.552552083333331.5450.007552083333333280.0274479166666668
531.581.559322916666671.555416666666670.003906249999999990.0206770833333336
541.581.566406251.566250.0001562500000000110.0135937500000003
551.581.573489583333331.57708333333333-0.003593750000000020.00651041666666696
561.591.585885416666671.58833333333333-0.002447916666666670.00411458333333359
571.61.602656251.596666666666670.00598958333333342-0.00265624999999958
581.61.603072916666671.601250.00182291666666666-0.00307291666666631
591.611.605885416666671.605833333333335.20833333333831e-050.00411458333333359
601.611.606510416666671.61083333333333-0.004322916666666690.00348958333333349
611.611.608593751.61583333333333-0.007239583333333310.00140625000000005
621.621.609947916666671.62041666666667-0.01046875000000000.0100520833333335
631.631.632760416666671.624166666666670.00859375-0.00276041666666682
641.631.635468751.627916666666670.00755208333333328-0.00546874999999991
651.641.635572916666671.631666666666670.003906249999999990.0044270833333333
661.641.635156251.6350.0001562500000000110.00484374999999981
671.641.634739583333331.63833333333333-0.003593750000000020.00526041666666655
681.64NANA-0.00244791666666667NA
691.64NANA0.00598958333333342NA
701.65NANA0.00182291666666666NA
711.65NANA5.20833333333831e-05NA
721.65NANA-0.00432291666666669NA
731.65NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/1gvxq1211999928.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/1gvxq1211999928.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/212h41211999928.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/212h41211999928.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/3dx2c1211999928.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/3dx2c1211999928.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/43sbf1211999928.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1212000232etk26xupf1c1101/43sbf1211999928.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