Home » date » 2009 » Dec » 29 »

*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: Tue, 29 Dec 2009 03:53:42 -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/29/t1262084074cschpc2xs6zqv8k.htm/, Retrieved Tue, 29 Dec 2009 11:54:39 +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/29/t1262084074cschpc2xs6zqv8k.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 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 7,1 7,2 7,1 6,9 7 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 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
18NANA1.00360812691921NA
28.1NANA0.986680333147035NA
37.7NANA0.962527812296396NA
47.5NANA0.951722152838305NA
57.6NANA0.988356900924954NA
67.8NANA1.04107780348833NA
77.88.093616346915067.63751.059720634620630.96372247777386
87.87.783393964284367.595833333333331.024692567980391.00213352115951
97.57.739146542404617.5751.021669510548460.96909910658827
107.57.498341654860227.583333333333330.9887923061354141.00022116158694
117.17.379041667053747.604166666666670.9703945205988480.962184565470118
127.57.634944467288387.629166666666671.000757330502030.98232541600446
137.57.68596557198967.658333333333331.003608126919210.975804527063285
147.67.589216229122617.691666666666670.9866803331470351.00142093340759
157.77.447558947643377.73750.9625278122963961.03389581124920
167.77.407570756258147.783333333333330.9517221528383051.03947707735290
177.97.717420134722357.808333333333330.9883569009249541.02365814768282
188.18.111731218846597.791666666666671.041077803488330.998553795912353
198.28.190757405088627.729166666666671.059720634620631.00112841761198
208.27.843167697416557.654166666666671.024692567980391.04549594199050
218.27.747660454992517.583333333333331.021669510548461.05838401768317
227.97.436542135726767.520833333333330.9887923061354141.06232168873846
237.37.237525799466417.458333333333330.9703945205988481.00863198312028
246.97.393094779083727.38751.000757330502030.933303333202387
256.67.330521027039057.304166666666671.003608126919210.900345279094831
266.77.108209566713437.204166666666670.9866803331470350.942572097392146
276.96.833947467304417.10.9625278122963961.00966535563986
2876.666020578838297.004166666666670.9517221528383051.05010176869570
297.16.840253385151456.920833333333330.9883569009249541.03797324458951
307.27.157409898982296.8751.041077803488331.00595049069689
317.17.276748357728336.866666666666671.059720634620630.975710530440343
326.97.023413643032246.854166666666671.024692567980390.982428253652029
3376.964380496905366.816666666666671.021669510548461.00511452570842
346.86.68258800229856.758333333333330.9887923061354141.01756983935881
356.46.501643288012286.70.9703945205988480.984366523429593
366.76.663375892259326.658333333333331.000757330502031.00549632923804
376.66.653085541368586.629166666666671.003608126919210.992020914049805
386.46.507979030715656.595833333333330.9866803331470350.983408208568893
396.36.292525572887696.53750.9625278122963961.00118782625922
406.26.146538903747386.458333333333330.9517221528383051.00869775610141
416.56.329602319673566.404166666666670.9883569009249541.02692075611082
426.86.675911414868936.41251.041077803488331.01858751223911
436.86.848444601235836.46251.059720634620630.992926189221552
446.46.673310348972286.51251.024692567980390.959044262190748
456.16.666393556328726.5251.021669510548460.915037485929552
465.86.427149989880196.50.9887923061354140.902421759120658
476.16.279261210375056.470833333333330.9703945205988480.971451862827611
487.26.47573389279026.470833333333331.000757330502031.11184309287572
497.36.5443613276196.520833333333331.003608126919211.11546408191003
506.96.532646039044336.620833333333330.9866803331470351.05623356274932
516.16.497062733000676.750.9625278122963960.938885808969665
525.86.551020818703666.883333333333330.9517221528383050.885358199967944
536.26.926734613982387.008333333333330.9883569009249540.895082653734793
547.17.391652404767167.11.041077803488330.960543003269599
557.77.594664548114527.166666666666671.059720634620631.01386966484407
567.9NANA1.02469256798039NA
577.7NANA1.02166951054846NA
587.4NANA0.988792306135414NA
597.5NANA0.970394520598848NA
608NANA1.00075733050203NA
618.1NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262084074cschpc2xs6zqv8k/1jza21262084019.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262084074cschpc2xs6zqv8k/1jza21262084019.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/29/t1262084074cschpc2xs6zqv8k/2srrb1262084019.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262084074cschpc2xs6zqv8k/2srrb1262084019.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/29/t1262084074cschpc2xs6zqv8k/3ou681262084019.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262084074cschpc2xs6zqv8k/3ou681262084019.ps (open in new window)


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