Home » date » 2009 » Dec » 06 »

*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, 06 Dec 2009 08:20:02 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b.htm/, Retrieved Sun, 06 Dec 2009 16:21:14 +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/2009/Dec/06/t1260112869g5p80eg2q17yx2b.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 «
8.1 7.7 7.5 7.6 7.8 7.8 7.8 7.5 7.5 7.1 7.5 7.5 7.6 7.7 7.7 7.9 8.1 8.2 8.2 8.2 7.9 7.3 6.9 6.6 6.7 6.9 7.0 7.1 7.2 7.1 6.9 7.0 6.8 6.4 6.7 6.6 6.4 6.3 6.2 6.5 6.8 6.8 6.4 6.1 5.8 6.1 7.2 7.3 6.9 6.1 5.8 6.2 7.1 7.7 7.9 7.7 7.4 7.5 8.0 8.1
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
18.1NANA0.98746957219666NA
27.7NANA0.9632977319049NA
37.5NANA0.952483429071527NA
47.6NANA0.989147481050016NA
57.8NANA1.04191055471343NA
67.8NANA1.06056829812262NA
77.87.800310395055697.595833333333331.026919635114300.99996020734561
87.57.675343281977697.5751.013246637884840.977154991570291
97.57.502266691769627.583333333333330.989309893420170.999697865743415
107.17.279276587445947.604166666666670.957274729307960.975371647815234
117.57.73567846050847.629166666666671.013961130814860.969533575922066
127.57.692113524836847.658333333333331.004410906398720.975024611348165
137.67.595286792812647.691666666666670.987469572196661.00062054367609
147.77.453516200614167.73750.96329773190491.03306946584023
157.77.413496022940057.783333333333330.9524834290715271.03864627109442
167.97.723593247865547.808333333333330.9891474810500161.02283998476787
178.18.118219738808837.791666666666671.041910554713430.99775569775209
188.28.197309137572727.729166666666671.060568298122621.00032826167491
198.27.860214040437357.654166666666671.026919635114301.04322858866369
208.27.683787003960067.583333333333331.013246637884841.06718210639804
217.97.440434823430867.520833333333330.989309893420171.06176590313269
227.37.13967402275527.458333333333330.957274729307961.02245564387587
236.97.49063785389487.38751.013961130814860.921149858608143
246.67.336384662153967.304166666666671.004410906398720.899625674488863
256.77.113895376366777.204166666666670.987469572196660.941818742830858
266.96.839413896524787.10.96329773190491.00885837652054
2776.671352684455157.004166666666670.9524834290715271.04926247060969
287.16.845724858433656.920833333333330.9891474810500161.03714364027545
297.27.163135063654856.8751.041910554713431.00514648069840
307.17.282568980441966.866666666666671.060568298122620.974930689852404
316.97.038678332345926.854166666666671.026919635114300.980297674393128
3276.906964581581686.816666666666671.013246637884841.01346979810298
336.86.686086029697986.758333333333330.989309893420171.01703746703169
346.46.413740686363336.70.957274729307960.997857617413105
356.76.751291196008966.658333333333331.013961130814860.992402757558542
366.66.658407300334826.629166666666671.004410906398720.991228037321795
376.46.513184719947136.595833333333330.987469572196660.982622215580575
386.36.297558922328286.53750.96329773190491.00038762283955
396.26.151455479420286.458333333333330.9524834290715271.00789155033994
406.56.334665326557816.404166666666670.9891474810500161.02609998554289
416.86.681251432099896.41251.041910554713431.01777340205004
426.86.85392262661746.46251.060568298122620.9921325889487
436.46.687814123681876.51251.026919635114300.956964395487204
446.16.61143431219866.5251.013246637884840.922643969818324
455.86.43051430723116.50.989309893420170.901949629981836
466.16.194365227563586.470833333333330.957274729307960.984765956785422
477.26.561173483981176.470833333333331.013961130814861.09736467380088
487.36.549596118808296.520833333333331.004410906398721.11457254273081
496.96.537871459252056.620833333333330.987469572196661.05538936380211
506.16.502259690358076.750.96329773190490.938135400689308
515.86.556260936775676.883333333333330.9524834290715270.884650573845586
526.26.932275263025537.008333333333330.9891474810500160.89436725530343
537.17.397564938465377.11.041910554713430.9597752853891
547.77.600739469878757.166666666666671.060568298122621.01305932541361
557.9NANA1.02691963511430NA
567.7NANA1.01324663788484NA
577.4NANA0.98930989342017NA
587.5NANA0.95727472930796NA
598NANA1.01396113081486NA
608.1NANA1.00441090639872NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b/1rf3z1260112800.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b/1rf3z1260112800.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b/2ld9k1260112800.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b/2ld9k1260112800.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b/30bqd1260112800.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260112869g5p80eg2q17yx2b/30bqd1260112800.ps (open in new window)


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