Home » date » 2009 » Jun » 07 »

Yelle Eyckmans

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 07 Jun 2009 03:14:45 -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/Jun/07/t1244366265l3yffyfwhttls0h.htm/, Retrieved Sun, 07 Jun 2009 11:17:45 +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/Jun/07/t1244366265l3yffyfwhttls0h.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 «
10,812 10,738 10,171 9,721 9,897 9,828 9,924 10,371 10,846 10,413 10,709 10,662 10,57 10,297 10,635 10,872 10,296 10,383 10,431 10,574 10,653 10,805 10,872 10,625 10,407 10,463 10,556 10,646 10,702 11,353 11,346 11,451 11,964 12,574 13,031 13,812 14,544 14,931 14,886 16,005 17,064 15,168 16,05 15,839 15,137 14,954 15,648 15,305 15,579 16,348 15,928 16,171 15,937 15,713 15,594 15,683 16,438 17,032 17,696 17,745 19,394 20,148 20,108 18,584 18,441 18,391 19,178 18,079 18,483 19,644 19,195 19,65 20,83
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
110.812NANA0.269561111111111NA
210.738NANA0.466811111111111NA
310.171NANA0.324136111111111NA
49.721NANA0.216569444444444NA
59.897NANA0.101327777777778NA
69.828NANA-0.33068888888889NA
79.92410.158027777777810.3309166666667-0.172888888888889-0.234027777777776
810.3719.9157111111111110.3024583333333-0.3867472222222220.455288888888889
910.8469.9797277777777810.3034166666667-0.3236888888888890.866272222222221
1010.41310.233219444444410.3707083333333-0.1374888888888880.179780555555554
1110.70910.442002777777810.43529166666670.006711111111112080.266997222222219
1210.66210.441427777777810.4750416666667-0.03361388888888830.220572222222224
1310.5710.788852777777810.51929166666670.269561111111111-0.218852777777778
1410.29711.015686111111110.5488750.466811111111111-0.718686111111111
1510.63510.873427777777810.54929166666670.324136111111111-0.238427777777778
1610.87210.774152777777810.55758333333330.2165694444444440.0978472222222226
1710.29610.682036111111110.58070833333330.101327777777778-0.38603611111111
1810.38310.255269444444410.5859583333333-0.330688888888890.127730555555557
1910.43110.404736111111110.577625-0.1728888888888890.026263888888888
2010.57410.191002777777810.57775-0.3867472222222220.382997222222222
2110.65310.257686111111110.581375-0.3236888888888890.395313888888888
2210.80510.431177777777810.5686666666667-0.1374888888888880.373822222222222
2310.87210.582877777777810.57616666666670.006711111111112080.289122222222222
2410.62510.599886111111110.6335-0.03361388888888830.0251138888888889
2510.40710.981602777777810.71204166666670.269561111111111-0.574602777777777
2610.46311.253519444444410.78670833333330.466811111111111-0.790519444444445
2710.55611.202011111111110.8778750.324136111111111-0.646011111111113
2810.64611.222777777777811.00620833333330.216569444444444-0.576777777777776
2910.70211.271202777777811.1698750.101327777777778-0.569202777777777
3011.35311.061936111111111.392625-0.330688888888890.291063888888887
3111.34611.524902777777811.6977916666667-0.172888888888889-0.178902777777777
3211.45111.669586111111112.0563333333333-0.386747222222222-0.218586111111112
3311.96412.099227777777812.4229166666667-0.323688888888889-0.135227777777777
3412.57412.689136111111112.826625-0.137488888888888-0.115136111111111
3513.03113.321711111111113.3150.00671111111111208-0.290711111111111
3613.81213.705427777777813.7390416666667-0.03361388888888830.106572222222223
3714.54414.363561111111114.0940.2695611111111110.180438888888892
3814.93114.939644444444414.47283333333330.466811111111111-0.00864444444444246
3914.88615.112011111111114.7878750.324136111111111-0.226011111111109
4016.00515.235819444444415.019250.2165694444444440.76918055555556
4117.06415.328786111111115.22745833333330.1013277777777781.73521388888889
4215.16815.068019444444415.3987083333333-0.330688888888890.0999805555555575
4316.0515.331152777777815.5040416666667-0.1728888888888890.718847222222223
4415.83915.219461111111115.6062083333333-0.3867472222222220.61953888888889
4515.13715.384977777777815.7086666666667-0.323688888888889-0.247977777777777
4614.95415.621511111111115.759-0.137488888888888-0.667511111111112
4715.64815.725669444444415.71895833333330.00671111111111208-0.0776694444444459
4815.30515.661094444444415.6947083333333-0.0336138888888883-0.356094444444444
4915.57915.967977777777815.69841666666670.269561111111111-0.388977777777777
5016.34816.139727777777815.67291666666670.4668111111111110.20827222222222
5115.92816.044761111111115.7206250.324136111111111-0.11676111111111
5216.17116.077986111111115.86141666666670.2165694444444440.0930138888888887
5315.93716.134661111111116.03333333333330.101327777777778-0.197661111111110
5415.71315.889644444444416.2203333333333-0.33068888888889-0.176644444444445
5515.59416.308069444444416.4809583333333-0.172888888888889-0.714069444444444
5615.68316.411502777777816.79825-0.386747222222222-0.728502777777777
5716.43816.807061111111117.13075-0.323688888888889-0.369061111111112
5817.03217.267969444444417.4054583333333-0.137488888888888-0.235969444444439
5917.69617.617044444444417.61033333333330.006711111111112080.0789555555555594
6017.74517.792636111111117.82625-0.0336138888888883-0.0476361111111068
6119.39418.356727777777818.08716666666670.2695611111111111.03727222222222
6220.14818.803144444444418.33633333333330.4668111111111111.34485555555556
6320.10818.845511111111118.5213750.3241361111111111.26248888888889
6418.58418.931986111111118.71541666666670.216569444444444-0.347986111111112
6518.44118.988036111111118.88670833333330.101327777777778-0.547036111111112
6618.39118.697852777777819.0285416666667-0.33068888888889-0.306852777777777
6719.17818.994861111111119.16775-0.1728888888888890.183138888888891
6818.079NANA-0.386747222222222NA
6918.483NANA-0.323688888888889NA
7019.644NANA-0.137488888888888NA
7119.195NANA0.00671111111111208NA
7219.65NANA-0.0336138888888883NA
7320.83NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/1fsxk1244366081.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/1fsxk1244366081.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/27mea1244366081.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/27mea1244366081.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/3cg131244366081.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/3cg131244366081.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/4ughh1244366081.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244366265l3yffyfwhttls0h/4ughh1244366081.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