Home » date » 2010 » Dec » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 19 Dec 2010 16:14:36 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9.htm/, Retrieved Sun, 19 Dec 2010 17:12:25 +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/2010/Dec/19/t1292775145dofdzxmggc1oza9.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
41,85 41,75 41,75 41,75 41,58 41,61 41,42 41,37 41,37 41,33 41,37 41,34 41,33 41,29 41,29 41,27 41,04 40,90 40,89 40,72 40,72 40,58 40,24 40,07 40,12 40,10 40,10 40,08 40,06 39,99 40,05 39,66 39,66 39,67 39,56 39,64 39,73 39,70 39,70 39,68 39,76 40,00 39,96 40,01 40,01 40,01 40,00 39,91 39,86 39,79 39,79 39,80 39,64 39,55 39,36 39,28
 
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
141.85NANA-0.0292476851851864NA
241.75NANA-0.0200810185185186NA
341.75NANA0.0176967592592580NA
441.75NANA0.0349189814814835NA
541.58NANA0.0156134259259242NA
641.61NANA0.064502314814816NA
741.4241.627280092592641.51916666666670.10811342592593-0.207280092592590
841.3741.457696759259341.4783333333333-0.0206365740740760-0.0876967592592592
941.3741.461030092592641.440.0210300925925906-0.0910300925925895
1041.3341.419780092592641.40083333333330.0189467592592568-0.0897800925925907
1141.3741.263807870370441.3583333333333-0.09452546296296170.106192129629626
1241.3441.189918981481541.30625-0.1163310185185160.150081018518520
1341.3341.225335648148141.2545833333333-0.02924768518518640.104664351851852
1441.2941.185335648148241.2054166666667-0.02008101851851860.104664351851845
1541.2941.168946759259341.151250.01769675925925800.121053240740736
1641.2741.127835648148141.09291666666670.03491898148148350.142164351851861
1741.0441.030196759259341.01458333333330.01561342592592420.00980324074073735
1840.940.979085648148140.91458333333330.064502314814816-0.0790856481481441
1940.8940.919363425925940.811250.10811342592593-0.029363425925915
2040.7240.690613425925940.71125-0.02063657407407600.0293865740740813
2140.7240.633113425925940.61208333333330.02103009259259060.0868865740740787
2240.5840.531863425925940.51291666666670.01894675925925680.0481365740740713
2340.2440.32797453703740.4225-0.0945254629629617-0.0879745370370344
2440.0740.227418981481540.34375-0.116331018518516-0.157418981481484
2540.1240.241585648148140.2708333333333-0.0292476851851864-0.121585648148148
2640.140.171585648148240.1916666666667-0.0200810185185186-0.071585648148151
2740.140.121030092592640.10333333333330.0176967592592580-0.0210300925925964
2840.0840.056168981481540.021250.03491898148148350.0238310185185213
2940.0639.970613425925939.9550.01561342592592420.0893865740740765
3039.9939.973252314814839.908750.0645023148148160.0167476851851802
3140.0539.982696759259339.87458333333330.108113425925930.0673032407407348
3239.6639.821030092592639.8416666666667-0.0206365740740760-0.161030092592597
3339.6639.829363425925939.80833333333330.0210300925925906-0.169363425925930
3439.6739.793946759259339.7750.0189467592592568-0.123946759259255
3539.5639.651307870370439.7458333333333-0.0945254629629617-0.0913078703703718
3639.6439.617418981481539.73375-0.1163310185185160.0225810185185225
3739.7339.701168981481539.7304166666667-0.02924768518518640.0288310185185097
3839.739.721168981481539.74125-0.0200810185185186-0.0211689814814733
3939.739.788113425925939.77041666666670.0176967592592580-0.0881134259259184
4039.6839.834085648148239.79916666666670.0349189814814835-0.154085648148154
4139.7639.847280092592639.83166666666670.0156134259259242-0.0872800925926
424039.925752314814839.861250.0645023148148160.0742476851851848
4339.9639.986030092592639.87791666666670.10811342592593-0.0260300925925918
4440.0139.866446759259339.8870833333333-0.02063657407407600.143553240740736
4540.0139.915613425925939.89458333333330.02103009259259060.094386574074079
4640.0139.922280092592639.90333333333330.01894675925925680.0877199074074042
474039.808807870370439.9033333333333-0.09452546296296170.191192129629634
4839.9139.763252314814839.8795833333333-0.1163310185185160.146747685185183
4939.86NA39.8358333333333NANA
5039.79NA39.7804166666667NANA
5139.79NANANANA
5239.8NANANANA
5339.64NANANANA
5439.55NANANANA
5539.36NANANANA
5639.28NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/18cyc1292775272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/18cyc1292775272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/28cyc1292775272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/28cyc1292775272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/30lxe1292775272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/30lxe1292775272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/40lxe1292775272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292775145dofdzxmggc1oza9/40lxe1292775272.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