Home » date » 2009 » Dec » 01 »

*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, 01 Dec 2009 05:52:55 -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/01/t1259672020551q5vof446pouu.htm/, Retrieved Tue, 01 Dec 2009 13:53:46 +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/01/t1259672020551q5vof446pouu.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 «
149 139 135 130 127 122 117 112 113 149 157 157 147 137 132 125 123 117 114 111 112 144 150 149 134 123 116 117 111 105 102 95 93 124 130 124 115 106 105 105 101 95 93 84 87 116 120 117 109 105 107 109 109 108 107 99 103 131 137 135
 
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
1149NANA1.07698743664865NA
2139NANA1.00707323925438NA
3135NANA0.987244752463944NA
4130NANA0.9828075799108NA
5127NANA0.959805789945503NA
6122NANA0.922007956896285NA
7117119.064110375558133.8333333333330.8896446603404110.982663874369467
8112112.649777197437133.6666666666670.8427664129484070.99423188208976
9113113.972156529908133.4583333333330.8539905578263480.991470227821364
10149150.394033581143133.1251.129720440046140.990730791987232
11157157.168466713945132.751.183943252082450.99892811377837
12157154.085548626655132.3751.164007921636681.01891450171234
13147142.207216114149132.0416666666671.076987436648651.0337028177389
14137132.807783426672131.8751.007073239254381.03156604579312
15132130.110631335144131.7916666666670.9872447524639441.01452124738362
16125129.2801470741131.5416666666670.98280757991080.966892464380887
17123125.774550390775131.0416666666670.9598057899455030.977940287743786
18117120.245204378557130.4166666666670.9220079568962850.973011777098897
19114115.246052041597129.5416666666670.8896446603404110.989187898244465
20111108.225253529458128.4166666666670.8427664129484071.02563862296508
21112108.599132603584127.1666666666670.8539905578263481.03131578784179
22144142.533062185822126.1666666666671.129720440046141.01029191256879
23150148.387554261001125.3333333333331.183943252082451.01086644865218
24149144.724984923493124.3333333333331.164007921636681.02953888769632
25134132.82845052123.3333333333331.076987436648651.00882001917070
26123123.030780728910122.1666666666671.007073239254380.99974981278077
27116119.168668662002120.7083333333330.9872447524639440.973410220172978
28117117.036002641045119.0833333333330.98280757991080.999692379778597
29111112.697196502768117.4166666666670.9598057899455030.984940206540754
30105106.530336019725115.5416666666670.9220079568962850.98563473957839
31102101.160011586208113.7083333333330.8896446603404111.0083035618583
329594.5654145862525112.2083333333330.8427664129484071.00459560628639
339394.828534858634111.0416666666670.8539905578263480.98071746166531
34124124.363391775080110.0833333333331.129720440046140.997077984365874
35130129.247138352334109.1666666666671.183943252082451.00582497730521
36124126.100858177307108.3333333333331.164007921636680.98333985820816
37115115.821023916257107.5416666666671.076987436648650.992911270436961
38106107.463106905436106.7083333333331.007073239254380.986385030662442
39105104.6479437611781060.9872447524639441.00336419643013
40105103.604299048930105.4166666666670.98280757991081.01347145788237
41101100.459672680963104.6666666666670.9598057899455031.00537854946784
429595.8504105190097103.9583333333330.9220079568962850.991127732115023
439392.0040852902042103.4166666666670.8896446603404111.01082467921565
448486.9102863353045103.1250.8427664129484070.966513902346651
458788.1033592157516103.1666666666670.8539905578263480.987476536359418
46116116.831922174772103.4166666666671.129720440046140.992879324765987
47120123.031436278901103.9166666666671.183943252082450.975360473952125
48117121.97833012151104.7916666666671.164007921636680.959186766071066
49109114.070919331703105.9166666666671.076987436648650.955545906341326
50105107.882720755126107.1251.007073239254380.973279124451553
51107107.033785246299108.4166666666670.9872447524639440.999684349701157
52109107.822181579381109.7083333333330.98280757991081.01092371164603
53109106.578434591865111.0416666666670.9598057899455031.02272096993550
54108103.725895150832112.50.9220079568962851.04120576489557
55107NANA0.889644660340411NA
5699NANA0.842766412948407NA
57103NANA0.853990557826348NA
58131NANA1.12972044004614NA
59137NANA1.18394325208245NA
60135NANA1.16400792163668NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259672020551q5vof446pouu/1i3nb1259671973.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259672020551q5vof446pouu/1i3nb1259671973.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259672020551q5vof446pouu/2w9nl1259671973.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259672020551q5vof446pouu/2w9nl1259671973.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259672020551q5vof446pouu/3b8l81259671973.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259672020551q5vof446pouu/3b8l81259671973.ps (open in new window)


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