Home » date » 2009 » Dec » 04 »

*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, 04 Dec 2009 14:39:14 -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/04/t12599627911941al9lpmyuxjw.htm/, Retrieved Fri, 04 Dec 2009 22:39:56 +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/04/t12599627911941al9lpmyuxjw.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 «
267413 267366 264777 258863 254844 254868 277267 285351 286602 283042 276687 277915 277128 277103 275037 270150 267140 264993 287259 291186 292300 288186 281477 282656 280190 280408 276836 275216 274352 271311 289802 290726 292300 278506 269826 265861 269034 264176 255198 253353 246057 235372 258556 260993 254663 250643 243422 247105 248541 245039 237080 237085 225554 226839 247934 248333 246969 245098 246263 255765 264319 268347 273046 273963 267430 271993 292710
 
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
1267413NANA1.00909178270324NA
2267366NANA1.00381811265289NA
3264777NANA0.9850804341603NA
4258863NANA0.980553315593723NA
5254844NANA0.960661796720184NA
6254868NANA0.94880601025182NA
7277267280212.796606069271654.3751.031504817863030.98948728736964
8285351283235.217376375272464.8751.039529287495771.00747005490074
9286602282753.520226277273298.0833333331.034597523618241.0136107227618
10283042277561.719158669274195.8751.012275327477731.01974436841630
11276687272966.827150513275178.50.9919627701674111.01362866282442
12277915276697.741819751276112.7083333331.002118821295651.00439923424110
13277128279468.894220464276950.9166666671.009091782703240.99162377542233
14277103278670.322685362277610.3751.003818112652890.994375710085456
15275037273941.920926036278090.9166666670.98508043416031.00399748629294
16270150273125.935334317278542.6666666670.9805533155937230.989104164235906
17267140267982.932551924278956.5833333330.9606617967201840.996854528966092
18264993265052.477452801279353.7083333330.948806010251820.999775601219154
19287259288490.064037644279678.8333333331.031504817863030.995732733320469
20291186291010.116799877279944.1251.039529287495771.00060438861046
21292300289849.522883164280156.7916666671.034597523618241.00845430791971
22288186283885.360951284280442.8333333331.012275327477731.01514921035134
23281477278696.321447436280954.4166666670.9919627701674111.00997744978521
24282656282114.653353314281518.1666666671.002118821295651.00191888879309
25280190284450.233760287281887.3751.009091782703240.98502292051594
26280408283050.775800206281974.1666666671.003818112652890.990663244809224
27276836277748.3538136672819550.98508043416030.996715178321887
28275216276076.420260939281551.6666666670.9805533155937230.996883398226746
29274352269622.101770152280662.8750.9606617967201841.01754269475238
30271311265170.050330904279477.6250.948806010251821.02315853416113
31289802287081.2003739122783131.031504817863031.00947745663089
32290726288128.238418897277171.8333333331.039529287495771.00901599091904
33292300285128.783707584275593.9166666671.034597523618241.02515079747182
34278506277142.131035429273781.3751.012275327477731.00492118956968
35269826269507.811639157271691.4583333330.9919627701674111.00118062760002
36265861269585.036465801269015.0416666671.002118821295650.986186041648963
37269034268636.041660199266215.6666666671.009091782703241.00148140337887
38264176264681.615376487263674.8751.003818112652890.998089722341431
39255198256975.757473439260867.7916666670.98508043416030.993082003178364
40253353253118.684626555258138.6250.9805533155937231.00092571346043
41246057245811.738890269255877.50.9606617967201841.00099775995580
42235372240992.773245586253995.8333333330.948806010251820.976676590049203
43258556260311.028608955252360.4583333331.031504817863030.993257955230198
44260993260619.564707379250709.2083333331.039529287495771.00143287512985
45254663257777.128975689249156.9166666671.034597523618240.987919296843505
46250643250765.061936649247724.1666666671.012275327477730.999513241853925
47243422244213.339644837246192.0416666670.9919627701674110.996759637921548
48247105245501.281853406244982.2083333331.002118821295651.00653242270055
49248541246404.151958590244184.0833333331.009091782703241.00867212676582
50245039244142.6184507612432141.003818112652891.00367154884685
51237080238749.922415659242365.9166666670.98508043416030.993005558289766
52237085237111.805451698241814.2916666670.9805533155937230.999886950159877
53225554232193.517342688241701.6250.9606617967201840.971405242408689
54226839229782.630234461242180.8333333330.948806010251820.987189500653477
55247934250861.026158205243199.0833333331.031504817863030.988332080901403
56248333254505.529889252244827.6666666671.039529287495770.975746971423614
57246969255853.294880521247297.4166666671.034597523618240.965275823847922
58245098253405.497772097250332.5833333331.012275327477730.967216584308015
59246263251575.6459932382536140.9919627701674110.97888251077618
60255765257785.296119799257240.251.002118821295650.992162872940354
61264319NA260987.333333333NANA
62268347NANANANA
63273046NANANANA
64273963NANANANA
65267430NANANANA
66271993NANANANA
67292710NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599627911941al9lpmyuxjw/16lkl1259962752.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599627911941al9lpmyuxjw/16lkl1259962752.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599627911941al9lpmyuxjw/2i2r61259962752.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599627911941al9lpmyuxjw/2i2r61259962752.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599627911941al9lpmyuxjw/3kkqv1259962752.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599627911941al9lpmyuxjw/3kkqv1259962752.ps (open in new window)


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