Home » date » 2010 » Aug » 06 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 06 Aug 2010 12:20:37 +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/Aug/06/t1281097196ulzcatdxqxhcjhz.htm/, Retrieved Fri, 06 Aug 2010 14:20:01 +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/2010/Aug/06/t1281097196ulzcatdxqxhcjhz.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 «
94 93 92 90 88 87 88 90 91 91 92 94 88 90 82 83 88 83 85 81 79 71 70 85 88 84 81 93 99 96 90 95 93 86 77 89 90 84 76 96 104 101 95 101 95 90 88 99 81 79 70 95 100 105 107 106 99 86 81 95 82 78 68 96 98 107 102 98 93 69 65 90 87 80 67 85 85 92 87 85 79 58 47 67
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
194NANA-2.59085648148148NA
293NANA-6.04918981481482NA
392NANA-14.4311342592593NA
490NANA3.21469907407408NA
588NANA8.08969907407408NA
687NANA10.2563657407407NA
78895.867476851851990.58333333333335.28414351851852-7.86747685185186
89096.298032407407490.20833333333336.08969907407407-6.29803240740742
99192.520254629629689.66666666666672.85358796296297-1.52025462962962
109182.520254629629688.9583333333333-6.43807870370378.47974537037038
119278.950810185185288.6666666666667-9.715856481481513.0491898148148
129491.936921296296388.53.43692129629632.06307870370370
138885.617476851851888.2083333333333-2.590856481481482.38252314814815
149081.659143518518587.7083333333333-6.049189814814828.34085648148148
158272.402199074074186.8333333333333-14.43113425925939.59780092592592
168388.71469907407485.53.21469907407408-5.71469907407408
178891.83969907407483.758.08969907407408-3.83969907407406
188392.714699074074182.458333333333310.2563657407407-9.7146990740741
198587.367476851851882.08333333333335.28414351851852-2.36747685185185
208187.923032407407481.83333333333336.08969907407407-6.9230324074074
217984.395254629629681.54166666666672.85358796296297-5.39525462962963
227175.47858796296381.9166666666667-6.4380787037037-4.47858796296295
237073.075810185185282.7916666666667-9.7158564814815-3.07581018518518
248587.22858796296383.79166666666673.4369212962963-2.22858796296296
258881.950810185185284.5416666666667-2.590856481481486.04918981481481
268479.284143518518585.3333333333333-6.049189814814824.71585648148148
278172.068865740740786.5-14.43113425925938.93113425925927
289390.923032407407487.70833333333333.214699074074082.07696759259261
299996.71469907407488.6258.089699074074082.28530092592594
309699.33969907407489.083333333333310.2563657407407-3.33969907407408
319094.617476851851889.33333333333335.28414351851852-4.61747685185185
329595.506365740740789.41666666666676.08969907407407-0.506365740740733
339392.061921296296389.20833333333332.853587962962970.938078703703724
348682.686921296296389.125-6.43807870370373.31307870370371
357779.742476851851889.4583333333333-9.7158564814815-2.74247685185183
368993.311921296296389.8753.4369212962963-4.31192129629629
379087.700810185185290.2916666666667-2.590856481481482.29918981481481
388484.700810185185290.75-6.04918981481482-0.70081018518519
397676.652199074074191.0833333333333-14.4311342592593-0.652199074074076
409694.548032407407491.33333333333333.214699074074081.45196759259260
41104100.04803240740791.95833333333338.089699074074083.9519675925926
42101103.08969907407492.833333333333310.2563657407407-2.08969907407406
439598.159143518518592.8755.28414351851852-3.15914351851850
4410198.381365740740792.29166666666676.089699074074072.61863425925927
459594.686921296296391.83333333333332.853587962962970.313078703703709
469085.10358796296391.5416666666667-6.43807870370374.89641203703704
478881.617476851851891.3333333333333-9.71585648148156.38252314814815
489994.770254629629691.33333333333333.43692129629634.22974537037035
498189.409143518518592-2.59085648148148-8.40914351851852
507986.659143518518592.7083333333333-6.04918981481482-7.65914351851852
517078.65219907407493.0833333333333-14.4311342592593-8.65219907407405
529596.298032407407493.08333333333333.21469907407408-1.29803240740739
53100100.71469907407492.6258.08969907407408-0.714699074074076
54105102.42303240740792.166666666666710.25636574074072.57696759259260
5510797.325810185185292.04166666666675.284143518518529.67418981481482
5610698.131365740740792.04166666666676.089699074074077.86863425925927
579994.770254629629691.91666666666672.853587962962974.22974537037037
588685.436921296296391.875-6.43807870370370.563078703703724
598182.117476851851891.8333333333333-9.7158564814815-1.11747685185185
609595.270254629629691.83333333333333.4369212962963-0.270254629629633
618289.117476851851891.7083333333333-2.59085648148148-7.11747685185185
627885.117476851851991.1666666666667-6.04918981481482-7.11747685185186
636876.152199074074190.5833333333333-14.4311342592593-8.15219907407406
649692.83969907407489.6253.214699074074083.16030092592594
659896.33969907407488.258.089699074074081.66030092592592
6610797.631365740740787.37510.25636574074079.36863425925927
6710292.659143518518587.3755.284143518518529.34085648148148
689893.756365740740787.66666666666676.089699074074074.24363425925925
699390.561921296296387.70833333333332.853587962962972.43807870370371
706980.770254629629687.2083333333333-6.4380787037037-11.7702546296296
716576.492476851851886.2083333333333-9.7158564814815-11.4924768518518
729088.47858796296385.04166666666673.43692129629631.52141203703704
738781.200810185185283.7916666666667-2.590856481481485.79918981481481
748076.575810185185282.625-6.049189814814823.42418981481481
756767.068865740740781.5-14.4311342592593-0.0688657407407476
768583.673032407407480.45833333333333.214699074074081.32696759259258
778587.33969907407479.258.08969907407408-2.33969907407408
789287.798032407407477.541666666666710.25636574074074.20196759259258
7987NANA5.28414351851852NA
8085NANA6.08969907407407NA
8179NANA2.85358796296297NA
8258NANA-6.4380787037037NA
8347NANA-9.7158564814815NA
8467NANA3.4369212962963NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097196ulzcatdxqxhcjhz/1ykv61281097235.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097196ulzcatdxqxhcjhz/1ykv61281097235.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097196ulzcatdxqxhcjhz/2ykv61281097235.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097196ulzcatdxqxhcjhz/2ykv61281097235.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097196ulzcatdxqxhcjhz/3rtvr1281097235.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/06/t1281097196ulzcatdxqxhcjhz/3rtvr1281097235.ps (open in new window)


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