Home » date » 2009 » Dec » 11 »

*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: Fri, 11 Dec 2009 06:04:40 -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/11/t12605367083qzh1uuyl72ias1.htm/, Retrieved Fri, 11 Dec 2009 14:05: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/11/t12605367083qzh1uuyl72ias1.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 «
15859.4 15258.9 15498.6 15106.5 15023.6 12083.0 15761.3 16942.6 15070.3 13659.6 14768.9 14725.1 15998.1 15370.6 14956.9 15469.7 15101.8 11703.7 16283.6 16726.5 14968.9 14861.0 14583.3 15305.8 17903.9 16379.4 15420.3 17870.5 15912.8 13866.5 17823.2 17872.0 17422.0 16704.5 15991.2 16583.6 19123.5 17838.7 17209.4 18586.5 16258.1 15141.6 19202.1 17746.5 19090.1 18040.3 17515.5 17751.8 21072.4 17170.0 19439.5 19795.4 17574.9 16165.4 19464.6 19932.1 19961.2 17343.4 18924.2 18574.1 21350.6
 
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
115859.4NANA1.11033803352377NA
215258.9NANA1.00030595448686NA
315498.6NANA0.99531399743087NA
415106.5NANA1.06043625305120NA
515023.6NANA0.956804451872642NA
612083NANA0.830761475963053NA
715761.315900.989341125414985.59583333331.061084892317450.99121505347066
816942.615717.546650642614996.02916666671.048113902417561.07794176639567
915070.315681.56475124314978.11251.046965347018390.96102016852658
1013659.614728.855008699414970.6750.983847088304260.927404064466122
1114768.914004.008568792414989.06666666670.9342815587000591.05461946323798
1214725.114553.389862882814976.52083333330.9717470449138761.01179863514515
1315998.116635.616455227514982.47916666671.110338033523770.96167761760177
1415370.614999.825360194614995.23751.000305954486861.02471859711042
1514956.914911.802603792614982.00833333330.995313997430871.00302427529425
1615469.715936.068108446715027.84166666671.060436253051200.970735058028551
1715101.814419.202557129415070.16666666670.9568044518726421.04733947249622
1811703.712533.390313807215086.62916666670.8307614759630530.933801605708135
1916283.616118.12710077715190.23333333331.061084892317451.01026626097365
2016726.516048.379436799515311.6751.048113902417561.04225476883015
2114968.916095.015729136215373.01666666671.046965347018390.930033263210946
221486115242.111637216215492.35833333330.983847088304260.9749961392301
2314583.314599.254921199615626.18333333330.9342815587000590.998907141406485
2415305.815305.10503420615750.09166666670.9717470449138761.00004540745016
2517903.917659.213956290715904.35833333331.110338033523771.01385599859172
2616379.416021.137739725716016.23751.000305954486861.02236184883337
2715420.316090.424409558616166.17916666670.995313997430870.958352595773636
2817870.517333.047061856916345.20416666671.060436253051201.03100741238543
2915912.815768.787196551416480.67916666670.9568044518726421.00913277613894
3013866.513784.479020040016592.58333333330.8307614759630531.00595024156087
3117823.217716.554224938116696.64166666671.061084892317451.00601955514079
321787217616.973601733816808.26251.048113902417561.01447617530863
331742217739.375140807616943.61251.046965347018390.982109001118222
3416704.516772.616962685317047.99166666670.983847088304260.99593879936346
3515991.215968.938936132617092.21250.9342815587000591.00139402273103
3616583.616674.916109230817159.72916666670.9717470449138760.994523744009708
3719123.519175.884819591017270.31251.110338033523770.997268192832622
3817838.717327.837408071917322.53751.000305954486861.02948218983692
3917209.417305.337851956017386.81250.995313997430870.994456169953066
4018586.518570.333152526317511.9751.060436253051201.00087057390629
4116258.116869.558824949117631.14583333330.9568044518726420.963753715713964
4215141.614740.477788504417743.33333333330.8307614759630531.02721229374318
4319202.118964.995760929517873.21251.061084892317451.01250220364188
4417746.518789.070644524917926.55416666671.048113902417560.944511856693206
4519090.118836.594824482917991.61251.046965347018391.01345812116676
4618040.317841.972661051818134.90416666670.983847088304261.01111577417564
4717515.517041.427987243218240.14166666670.9342815587000591.02781879623654
4817751.817819.573393949018337.66666666670.9717470449138760.996196688189402
4921072.420420.518238269418391.26251.110338033523771.0319228804149
501717018498.9247645818493.26666666671.000305954486860.928162053660302
5119439.518533.372850552818620.62916666670.995313997430871.04889164842006
5219795.419753.687222759318627.88751.060436253051201.00211164512074
5317574.917851.622914351218657.54583333330.9568044518726420.984498725091895
5416165.415577.196516551418750.50416666670.8307614759630531.03776054842883
5519464.619944.531858085318796.35833333331.061084892317450.975936669684693
5619932.1NANA1.04811390241756NA
5719961.2NANA1.04696534701839NA
5817343.4NANA0.98384708830426NA
5918924.2NANA0.934281558700059NA
6018574.1NANA0.971747044913876NA
6121350.6NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605367083qzh1uuyl72ias1/132yu1260536678.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605367083qzh1uuyl72ias1/132yu1260536678.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t12605367083qzh1uuyl72ias1/2yz8m1260536678.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605367083qzh1uuyl72ias1/2yz8m1260536678.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t12605367083qzh1uuyl72ias1/3i4cn1260536678.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605367083qzh1uuyl72ias1/3i4cn1260536678.ps (open in new window)


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