Home » date » 2010 » Dec » 06 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 06 Dec 2010 20:30:09 +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/06/t12916676298bhezgxir3e72jr.htm/, Retrieved Mon, 06 Dec 2010 21:33:54 +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/06/t12916676298bhezgxir3e72jr.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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.35 1.91 1.31 1.19 1.3 1.14 1.1 1.02 1.11 1.18 1.24 1.36 1.29 1.73 1.41 1.15 1.31 1.15 1.08 1.1 1.14 1.24 1.33 1.49 1.38 1.96 1.36 1.24 1.35 1.23 1.09 1.08 1.33 1.35 1.38 1.5 1.47 2.09 1.52 1.29 1.52 1.27 1.35 1.29 1.41 1.39 1.45 1.53 1.45 2.11 1.53 1.38 1.54 1.35 1.29 1.33 1.47 1.47 1.54 1.59 1.5 2 1.51 1.4 1.62 1.44 1.29 1.28 1.4 1.39 1.46 1.49
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.35NANA0.0195486111111111NA
21.91NANA0.575798611111111NA
31.31NANA0.0592152777777777NA
41.19NANA-0.118951388888889NA
51.3NANA0.0534652777777778NA
61.14NANA-0.129451388888889NA
71.11.070048611111111.265-0.1949513888888890.0299513888888892
81.021.040048611111111.255-0.214951388888889-0.0200486111111111
91.111.162298611111111.25166666666667-0.0893680555555556-0.052298611111111
101.181.195381944444441.25416666666667-0.0587847222222224-0.0153819444444445
111.241.251715277777781.25291666666667-0.00120138888888890-0.0117152777777776
121.361.353381944444441.253750.09963194444444440.00661805555555528
131.291.272881944444441.253333333333330.01954861111111110.0171180555555555
141.731.831631944444441.255833333333330.575798611111111-0.101631944444444
151.411.319631944444441.260416666666670.05921527777777770.0903680555555557
161.151.145215277777781.26416666666667-0.1189513888888890.00478472222222237
171.311.323881944444441.270416666666670.0534652777777778-0.0138819444444445
181.151.150131944444441.27958333333333-0.129451388888889-0.000131944444444310
191.081.093798611111111.28875-0.194951388888889-0.0137986111111110
201.11.087131944444441.30208333333333-0.2149513888888890.0128680555555558
211.141.220215277777781.30958333333333-0.0893680555555556-0.080215277777778
221.241.252465277777781.31125-0.0587847222222224-0.0124652777777776
231.331.315465277777781.31666666666667-0.001201388888888900.0145347222222221
241.491.421298611111111.321666666666670.09963194444444440.068701388888889
251.381.344965277777781.325416666666670.01954861111111110.0350347222222223
261.961.900798611111111.3250.5757986111111110.0592013888888889
271.361.391298611111111.332083333333330.0592152777777777-0.0312986111111111
281.241.225631944444441.34458333333333-0.1189513888888890.0143680555555554
291.351.404715277777781.351250.0534652777777778-0.0547152777777777
301.231.224298611111111.35375-0.1294513888888890.00570138888888883
311.091.162965277777781.35791666666667-0.194951388888889-0.0729652777777778
321.081.152131944444441.36708333333333-0.214951388888889-0.0721319444444446
331.331.289798611111111.37916666666667-0.08936805555555560.040201388888889
341.351.329131944444441.38791666666667-0.05878472222222240.0208680555555556
351.381.395881944444441.39708333333333-0.00120138888888890-0.0158819444444447
361.51.505465277777781.405833333333330.0996319444444444-0.00546527777777794
371.471.437881944444441.418333333333330.01954861111111110.0321180555555554
382.092.013715277777781.437916666666670.5757986111111110.0762847222222223
391.521.509215277777781.450.05921527777777770.0107847222222224
401.291.336048611111111.455-0.118951388888889-0.0460486111111109
411.521.513048611111111.459583333333330.05346527777777780.00695138888888902
421.271.334298611111111.46375-0.129451388888889-0.064298611111111
431.351.269215277777781.46416666666667-0.1949513888888890.0807847222222222
441.291.249215277777781.46416666666667-0.2149513888888890.0407847222222220
451.411.376048611111111.46541666666667-0.08936805555555560.0339513888888889
461.391.410798611111111.46958333333333-0.0587847222222224-0.0207986111111109
471.451.472965277777781.47416666666667-0.00120138888888890-0.0229652777777776
481.531.577965277777781.478333333333330.0996319444444444-0.0479652777777777
491.451.498715277777781.479166666666670.0195486111111111-0.0487152777777775
502.112.054131944444441.478333333333330.5757986111111110.0558680555555557
511.531.541715277777781.48250.0592152777777777-0.0117152777777776
521.381.369381944444441.48833333333333-0.1189513888888890.0106180555555557
531.541.548881944444441.495416666666670.0534652777777778-0.00888194444444412
541.351.372215277777781.50166666666667-0.129451388888889-0.0222152777777775
551.291.311298611111111.50625-0.194951388888889-0.0212986111111111
561.331.288798611111111.50375-0.2149513888888890.0412013888888889
571.471.408965277777781.49833333333333-0.08936805555555560.0610347222222223
581.471.439548611111111.49833333333333-0.05878472222222240.0304513888888889
591.541.501298611111111.5025-0.001201388888888900.038701388888889
601.591.609215277777781.509583333333330.0996319444444444-0.0192152777777774
611.51.532881944444441.513333333333330.0195486111111111-0.0328819444444446
6222.087048611111111.511250.575798611111111-0.0870486111111113
631.511.565465277777781.506250.0592152777777777-0.0554652777777778
641.41.381048611111111.5-0.1189513888888890.0189513888888886
651.621.546798611111111.493333333333330.05346527777777780.073201388888889
661.441.356381944444441.48583333333333-0.1294513888888890.0836180555555557
671.29NANA-0.194951388888889NA
681.28NANA-0.214951388888889NA
691.4NANA-0.0893680555555556NA
701.39NANA-0.0587847222222224NA
711.46NANA-0.00120138888888890NA
721.49NANA0.0996319444444444NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/1vx2v1291667405.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/1vx2v1291667405.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/2vx2v1291667405.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/2vx2v1291667405.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/3o7jh1291667405.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/3o7jh1291667405.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/4o7jh1291667405.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t12916676298bhezgxir3e72jr/4o7jh1291667405.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