Home » date » 2010 » Dec » 13 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 13 Dec 2010 12:49:59 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6.htm/, Retrieved Mon, 13 Dec 2010 13:49:38 +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/2010/Dec/13/t1292244578tahgfaafgujydx6.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3.65 3.59 3.31 3.89 4.31 4.35 4.11 3.90 3.75 3.75 3.88 3.93 3.97 3.97 4.33 4.16 4.93 3.86 4.06 4.18 4.08 4.38 4.48 4.41 4.37 4.56 4.71 4.94 5.03 5.08 5.05 4.83 4.68 4.69 4.58 4.54 4.75 4.71 4.50 4.62 4.69 5.05 4.93 4.53 4.33 4.33 3.87 3.74 3.31 3.21 2.93 3.19 3.46 3.73 3.60 3.46 3.25 3.19 2.82 1.89 1.98 2.30 2.42 2.47 2.81 3.37 3.14 3.21 3.02 2.96 2.92 3.07
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
13.65NANA-0.282993055555555NA
23.59NANA-0.195159722222222NA
33.31NANA-0.155326388888889NA
43.89NANA-0.0446597222222221NA
54.31NANA0.277923611111112NA
64.35NANA0.327090277777777NA
74.114.149340277777783.881666666666670.267673611111111-0.0393402777777774
83.94.033173611111113.910833333333330.122340277777778-0.133173611111111
93.753.947673611111113.96916666666667-0.0214930555555556-0.197673611111111
103.754.070673611111114.022916666666670.0477569444444444-0.320673611111112
113.883.990090277777784.06-0.069909722222222-0.110090277777778
123.933.792173611111114.06541666666667-0.2732430555555560.137826388888890
133.973.759923611111114.04291666666667-0.2829930555555550.21007638888889
143.973.857340277777784.0525-0.1951597222222220.112659722222222
154.333.922590277777784.07791666666667-0.1553263888888890.407409722222222
164.164.073256944444444.11791666666667-0.04465972222222210.086743055555556
174.934.447090277777784.169166666666670.2779236111111120.482909722222222
183.864.541256944444454.214166666666670.327090277777777-0.681256944444445
194.064.518506944444444.250833333333330.267673611111111-0.458506944444444
204.184.414423611111114.292083333333330.122340277777778-0.234423611111112
214.084.311006944444444.3325-0.0214930555555556-0.231006944444444
224.384.428590277777784.380833333333330.0477569444444444-0.0485902777777776
234.484.347590277777784.4175-0.0699097222222220.132409722222223
244.414.199256944444444.4725-0.2732430555555560.210743055555556
254.374.281590277777784.56458333333333-0.2829930555555550.088409722222222
264.564.437756944444444.63291666666667-0.1951597222222220.122243055555556
274.714.529673611111114.685-0.1553263888888890.180326388888888
284.944.678256944444444.72291666666667-0.04465972222222210.261743055555556
295.035.017923611111114.740.2779236111111120.0120763888888895
305.085.076673611111114.749583333333330.3270902777777770.00332638888888859
315.055.038506944444444.770833333333330.2676736111111110.0114930555555564
324.834.915256944444454.792916666666670.122340277777778-0.0852569444444455
334.684.768923611111114.79041666666667-0.0214930555555556-0.0889236111111122
344.694.816090277777784.768333333333330.0477569444444444-0.126090277777777
354.584.670923611111114.74083333333333-0.069909722222222-0.0909236111111111
364.544.452173611111114.72541666666667-0.2732430555555560.087826388888888
374.754.436173611111114.71916666666667-0.2829930555555550.313826388888889
384.714.506506944444444.70166666666667-0.1951597222222220.203493055555557
394.54.519256944444444.67458333333333-0.155326388888889-0.0192569444444448
404.624.600340277777784.645-0.04465972222222210.0196597222222215
414.694.878340277777784.600416666666670.277923611111112-0.188340277777777
425.054.864590277777784.53750.3270902777777770.185409722222222
434.934.711840277777784.444166666666670.2676736111111110.218159722222222
444.534.444006944444444.321666666666670.1223402777777780.085993055555556
454.334.172256944444444.19375-0.02149305555555560.157743055555556
464.334.116506944444444.068750.04775694444444440.213493055555556
473.873.888006944444443.95791666666667-0.069909722222222-0.0180069444444442
483.743.578423611111113.85166666666667-0.2732430555555560.161576388888890
493.313.458256944444443.74125-0.282993055555555-0.148256944444444
503.213.446090277777783.64125-0.195159722222222-0.236090277777778
512.933.396340277777783.55166666666667-0.155326388888889-0.466340277777777
523.193.414506944444443.45916666666667-0.0446597222222221-0.224506944444444
533.463.645840277777783.367916666666670.277923611111112-0.185840277777778
543.733.574173611111113.247083333333330.3270902777777770.155826388888889
553.63.382256944444443.114583333333330.2676736111111110.217743055555556
563.463.143590277777783.021250.1223402777777780.316409722222223
573.252.940590277777782.96208333333333-0.02149305555555560.309409722222223
583.192.958590277777782.910833333333330.04775694444444440.231409722222223
592.822.783840277777782.85375-0.0699097222222220.0361597222222225
601.892.538423611111112.81166666666667-0.273243055555556-0.648423611111111
611.982.494506944444442.7775-0.282993055555555-0.514506944444444
622.32.552756944444442.74791666666667-0.195159722222222-0.252756944444444
632.422.572590277777782.72791666666667-0.155326388888889-0.152590277777777
642.472.664090277777782.70875-0.0446597222222221-0.194090277777777
652.812.981256944444442.703333333333330.277923611111112-0.171256944444444
663.373.083756944444442.756666666666670.3270902777777770.286243055555556
673.14NANA0.267673611111111NA
683.21NANA0.122340277777778NA
693.02NANA-0.0214930555555556NA
702.96NANA0.0477569444444444NA
712.92NANA-0.069909722222222NA
723.07NANA-0.273243055555556NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/1c83t1292244595.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/1c83t1292244595.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/2c83t1292244595.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/2c83t1292244595.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/3n02e1292244595.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/3n02e1292244595.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/4n02e1292244595.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292244578tahgfaafgujydx6/4n02e1292244595.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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