Home » date » 2008 » May » 20 » attachments

Classical Deomposition - blazers - Wouter Dewachter

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 20 May 2008 06:39:33 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/20/t1211287254sws6tl3st30xioe.htm/, Retrieved Tue, 20 May 2008 14:40:59 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
161,79 161,79 161,85 161,77 161,86 161,89 161,89 161,89 162,18 162,43 162,58 162,57 162,57 162,57 162,44 162,79 163,15 163,23 163,23 163,23 163,38 163,71 163,73 163,73 163,73 163,73 163,93 164,27 164,57 164,73 164,73 164,76 165,75 165,86 165,99 166,13 166,13 166,13 166,15 166,45 166,48 166,51 166,51 166,51 166,58 166,82 167,35 167,5 167,5 167,6 167,72 167,29 166,98 166,98 166,98 166,98 167,63 167,83 167,85 167,87 167,87 167,96 167,7 169,25 168,79 168,77 168,77 169 168,92 169,23 169,28 169,29
 
Text written by user:
 
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
1161.79NANA0.088480902777769NA
2161.79NANA0.00743923611110494NA
3161.85NANA-0.0498524305555523NA
4161.77NANA-0.0228732638889101NA
5161.86NANA-0.0390190972222288NA
6161.89NANA-0.0816232638889064NA
7161.89161.881293402778162.073333333333-0.1920399305555580.0087065972222149
8161.89161.842439236111162.138333333333-0.2958940972222080.0475607638888675
9162.18162.253585069444162.1954166666670.0581684027777823-0.073585069444448
10162.43162.418585069444162.26250.1560850694444670.0114149305555316
11162.58162.563793402778162.358750.2050434027777910.0162065972222081
12162.57162.634418402778162.4683333333330.166085069444450-0.0644184027777897
13162.57162.668480902778162.580.088480902777769-0.0984809027777942
14162.57162.699105902778162.6916666666670.00743923611110494-0.129105902777752
15162.44162.747647569444162.7975-0.0498524305555523-0.307647569444441
16162.79162.877960069444162.900833333333-0.0228732638889101-0.0879600694444775
17163.15162.963064236111163.002083333333-0.03901909722222880.186935763888897
18163.23163.016710069444163.098333333333-0.08162326388890640.213289930555533
19163.23163.002960069444163.195-0.1920399305555580.227039930555549
20163.23162.995772569444163.291666666667-0.2958940972222080.234227430555563
21163.38163.460251736111163.4020833333330.0581684027777823-0.0802517361111086
22163.71163.681918402778163.5258333333330.1560850694444670.0280815972222399
23163.73163.851710069444163.6466666666670.205043402777791-0.121710069444447
24163.73163.934418402778163.7683333333330.166085069444450-0.204418402777776
25163.73163.981814236111163.8933333333330.088480902777769-0.25181423611113
26163.73164.027022569444164.0195833333330.00743923611110494-0.297022569444465
27163.93164.132230902778164.182083333333-0.0498524305555523-0.202230902777785
28164.27164.347543402778164.370416666667-0.0228732638889101-0.0775434027777635
29164.57164.515147569444164.554166666667-0.03901909722222880.0548524305555418
30164.73164.666710069444164.748333333333-0.08162326388890640.0632899305555554
31164.73164.756293402778164.948333333333-0.192039930555558-0.0262934027777817
32164.76164.852439236111165.148333333333-0.295894097222208-0.0924392361111188
33165.75165.399001736111165.3408333333330.05816840277778230.350998263888869
34165.86165.680251736111165.5241666666670.1560850694444670.179748263888882
35165.99165.899626736111165.6945833333330.2050434027777910.090373263888921
36166.13166.014418402778165.8483333333330.1660850694444500.115581597222217
37166.13166.085147569444165.9966666666670.0884809027777690.0448524305555509
38166.13166.151189236111166.143750.00743923611110494-0.0211892361111268
39166.15166.201397569444166.25125-0.0498524305555523-0.0513975694444468
40166.45166.302960069444166.325833333333-0.02287326388891010.147039930555536
41166.48166.383480902778166.4225-0.03901909722222880.0965190972222274
42166.51166.454626736111166.53625-0.08162326388890640.055373263888896
43166.51166.458376736111166.650416666667-0.1920399305555580.0516232638888710
44166.51166.472855902778166.76875-0.2958940972222080.0371440972221819
45166.58166.953585069444166.8954166666670.0581684027777823-0.373585069444459
46166.82167.151918402778166.9958333333330.156085069444467-0.331918402777774
47167.35167.256710069444167.0516666666670.2050434027777910.0932899305555566
48167.5167.258168402778167.0920833333330.1660850694444500.241831597222244
49167.5167.219730902778167.131250.0884809027777690.280269097222259
50167.6167.177855902778167.1704166666670.007439236111104940.42214409722223
51167.72167.183897569444167.23375-0.04985243055555230.536102430555559
52167.29167.296710069444167.319583333333-0.0228732638889101-0.00671006944443775
53166.98167.343480902778167.3825-0.0390190972222288-0.363480902777781
54166.98167.337126736111167.41875-0.0816232638889064-0.357126736111098
55166.98167.257543402778167.449583333333-0.192039930555558-0.277543402777752
56166.98167.184105902778167.48-0.295894097222208-0.204105902777741
57167.63167.552335069444167.4941666666670.05816840277778230.0776649305555566
58167.83167.731085069444167.5750.1560850694444670.098914930555594
59167.85167.937126736111167.7320833333330.205043402777791-0.0871267361111165
60167.87168.048168402778167.8820833333330.166085069444450-0.178168402777771
61167.87168.119730902778168.031250.088480902777769-0.249730902777770
62167.96168.197439236111168.190.00743923611110494-0.237439236111129
63167.7168.278064236111168.327916666667-0.0498524305555523-0.578064236111146
64169.25168.417126736111168.44-0.02287326388891010.83287326388887
65168.79168.518897569444168.557916666667-0.03901909722222880.271102430555544
66168.77168.595043402778168.676666666667-0.08162326388890640.174956597222234
67168.77NANA-0.192039930555558NA
68169NANA-0.295894097222208NA
69168.92NANA0.0581684027777823NA
70169.23NANA0.156085069444467NA
71169.28NANA0.205043402777791NA
72169.29NANA0.166085069444450NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/1j1e31211287171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/1j1e31211287171.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/2pkpp1211287171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/2pkpp1211287171.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/3j0on1211287171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/3j0on1211287171.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/4f9xv1211287171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/20/t1211287254sws6tl3st30xioe/4f9xv1211287171.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