Home » date » 2008 » May » 31 »

Roze Zalm Classical Decomposition

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sat, 31 May 2008 07:59: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/31/t1212242619fveb4zlsb0j94te.htm/, Retrieved Sat, 31 May 2008 14:03:39 +0000
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11.98 11.79 11.66 11.96 11.83 12.36 12.53 12.55 12.53 12.24 12.34 12.05 12.22 12.23 11.92 12.13 12.1 12.15 12.23 12.08 12.02 11.93 12.16 11.87 11.93 11.79 11.43 11.63 11.93 11.89 11.83 11.59 12.04 11.81 11.9 11.72 11.91 11.94 11.91 11.84 12.01 11.89 11.8 11.7 11.5 11.76 11.61 11.27 11.64 11.39 11.54 11.62 11.59 11.44 11.31 11.56 11.4 11.51 11.5 11.24 11.8 11.87 11.86 12.11 11.92 12.61 13.34 13.31 13.47 13.24 13.18 13.3
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
111.98NANA1.00508696868977NA
211.79NANA0.999482778696822NA
311.66NANA0.989960964639692NA
411.96NANA1.00040810180015NA
511.83NANA1.01048064257572NA
612.36NANA1.00631505396788NA
712.5312.198569461108312.16166666666671.003034353387001.02716962345039
812.5512.175474775435312.190.9988084311267711.03076062588707
912.5312.215368577842912.21916666666670.9996891695704521.02575701421959
1012.2412.248788099293412.23708333333331.000956499652830.999282533159843
1112.3412.309494090828912.25541666666671.004412532485271.00247824231817
1212.0512.029484302395512.25791666666670.9813645034076341.00170545113064
1312.2212.298914206867112.23666666666671.005086968689770.993583644414473
1412.2312.198270862836912.20458333333330.9994827786968221.00260111761084
1511.9212.041637683636112.163750.9899609646396920.989898576353833
1612.1312.134533438126712.12958333333331.000408101800150.99962640194204
1712.112.236078514389812.10916666666671.010480642575720.988878911308902
1812.1512.170541981863212.09416666666671.006315053967880.998312155539675
1912.2312.111221886167512.07458333333331.003034353387001.00980727749429
2012.0812.029815212562712.04416666666670.9988084311267711.00417170060808
2112.0212.001685017847312.00541666666670.9996891695704521.00152603422982
2211.9311.975610387929811.96416666666671.000956499652830.996191393469536
2312.1611.988919090877311.936251.004412532485271.01426991940023
2411.8711.696229273113311.91833333333330.9813645034076341.01485698705361
2511.9311.951321630195311.89083333333331.005086968689770.998215960472405
2611.7911.847618987977511.853750.9994827786968220.995136660958128
2711.4311.715363049040211.83416666666670.9899609646396920.975641979864755
2811.6311.834827844295811.831.000408101800150.982692790550856
2911.9311.937986724829911.81416666666671.010480642575720.999330982265769
3011.8911.871582551247011.79708333333331.006315053967881.00155138951977
3111.8311.825775026432811.791.003034353387001.00035726821775
3211.5911.781361615319911.79541666666670.9988084311267710.98375725815333
3312.0411.817992132938711.82166666666670.9996891695704521.01878558257308
3411.8111.861751586094311.85041666666671.000956499652830.995637104206859
3511.911.914843666606611.86251.004412532485270.99875418704417
3611.7211.644707636684411.86583333333330.9813645034076341.00646580108876
3711.9111.924938097267211.86458333333331.005086968689770.998747322866977
3811.9411.861778327342311.86791666666670.9994827786968221.00659443048918
3911.9111.731037430980411.850.9899609646396921.01525547677028
4011.8411.830242640495911.82541666666671.000408101800151.00082478101258
4112.0111.935039489622411.811251.010480642575721.00628070903685
4211.8911.854810633680811.78041666666671.006315053967881.00296836173993
4311.811.786071583277911.75041666666671.003034353387001.00118176922851
4411.711.702289281189011.716250.9988084311267710.999804373218434
4511.511.674286814812911.67791666666670.9996891695704520.985070881195775
4611.7611.664479742621011.65333333333331.000956499652831.00818898566303
4711.6111.677969711028811.62666666666671.004412532485270.994179663699197
4811.2711.374423496370911.59041666666670.9813645034076340.990819447121499
4911.6411.610010847077711.551251.005086968689771.00258304262738
5011.3911.519039024480911.5250.9994827786968220.98879776132309
5111.5411.399400507826111.5150.9899609646396921.01233393739236
5211.6211.505110007410811.50041666666671.000408101800151.00998599687575
5311.5911.605791213583211.48541666666671.010480642575720.998639367769715
5411.4411.552077521612111.47958333333331.006315053967880.990298063581856
5511.3111.519849548649711.4851.003034353387000.98178365544068
5611.5611.497949722987711.51166666666670.9988084311267711.00539663840139
5711.411.541411462690911.5450.9996891695704520.987747472382559
5811.5111.589825070355211.578751.000956499652830.993112487041809
5911.511.664159038707111.61291666666671.004412532485270.985926200237638
6011.2411.457839479160511.67541666666670.9813645034076340.980987735117362
6111.811.868820741515311.808751.005086968689770.994201551863144
6211.8711.960060800580811.966250.9994827786968220.992469871007974
6311.8612.003689179991512.12541666666670.9899609646396920.988029581752996
6412.1112.288763020487612.283751.000408101800150.985453131434826
6511.9212.556064051205412.42583333333331.010480642575720.949342082948012
6612.6112.661120570672612.58166666666671.006315053967880.995962397610287
6713.34NANA1.00303435338700NA
6813.31NANA0.998808431126771NA
6913.47NANA0.999689169570452NA
7013.24NANA1.00095649965283NA
7113.18NANA1.00441253248527NA
7213.3NANA0.981364503407634NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/17qr81212242389.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/17qr81212242389.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/2y1mh1212242389.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/2y1mh1212242389.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/3z3dt1212242389.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/3z3dt1212242389.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/4sqzd1212242389.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/31/t1212242619fveb4zlsb0j94te/4sqzd1212242389.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