Home » date » 2009 » Dec » 11 »

Shwws9_v2

*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 09:13:41 -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/t12605480834rxzxmbpyz6u6eb.htm/, Retrieved Fri, 11 Dec 2009 17:14:48 +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/t12605480834rxzxmbpyz6u6eb.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 «
102.1 102.86 102.99 103.73 105.02 104.43 104.63 104.93 105.87 105.66 106.76 106 107.22 107.33 107.11 108.86 107.72 107.88 108.38 107.72 108.41 109.9 111.45 112.18 113.34 113.46 114.06 115.54 116.39 115.94 116.97 115.94 115.91 116.43 116.26 116.35 117.9 117.7 117.53 117.86 117.65 116.51 115.93 115.31 115
 
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
1102.1NANA1.00519037227915NA
2102.86NANA1.00184469355228NA
3102.99NANA0.999537013489676NA
4103.73NANA1.01026528475282NA
5105.02NANA1.00486594356418NA
6104.43NANA0.999928785216081NA
7104.63105.083572462831104.7951.002753685412770.995683697725526
8104.93104.288573508554105.1945833333330.9913872958467081.00615049635704
9105.87104.558093138201105.55250.9905790307022621.01254715749326
10105.66105.512595737331105.9379166666670.9959851869593221.00139703000991
11106.76106.129334173471106.2641666666670.9987311574783371.00594242705319
12106106.406605006988106.5204166666670.9989315507464160.996178761581943
13107.22107.374854396181106.8204166666671.005190372279150.998557815076431
14107.33107.290470279536107.0929166666671.001844693552281.00036843645443
15107.11107.265314602645107.3150.9995370134896760.998552051954354
16108.86108.702018976192107.59751.010265284752821.00145334029024
17107.72108.494957232481107.9695833333331.004865943564180.992857205051284
18107.88108.414778715091108.42250.9999287852160810.995067289520593
19108.38109.23497272044108.9351.002753685412770.992173086154119
20107.72108.502795671983109.4454166666670.9913872958467080.992785479239177
21108.41108.954200328205109.9904166666670.9905790307022620.995005237736909
22109.9110.114462294911110.5583333333330.9959851869593220.998052369412324
23111.45111.056824021680111.1979166666670.9987311574783371.00354031354475
24112.18111.775445870770111.8950.9989315507464161.00361934704065
25113.34113.173127526944112.588751.005190372279151.00147448848240
26113.46113.498150461960113.2891666666671.001844693552280.999663867104404
27114.06113.891412054570113.9441666666670.9995370134896761.00148025160448
28115.54115.704420231135114.528751.010265284752820.998578963268594
29116.39115.560839592310115.001251.004865943564181.00717509850755
30115.94115.367200231299115.3754166666670.9999287852160811.00496501403824
31116.97116.057875921603115.7391666666671.002753685412771.00785921740471
32115.94115.105848140362116.1058333333330.9913872958467081.00724682431966
33115.91115.330227355825116.4270833333330.9905790307022621.00502706582192
34116.43116.199931787232116.6683333333330.9959851869593221.00197993414651
35116.26116.669276988726116.81750.9987311574783370.996491990014088
36116.35116.768854960064116.893750.9989315507464160.996412956518182
37117.9NA116.874166666667NANA
38117.7NA116.804583333333NANA
39117.53NA116.740416666667NANA
40117.86NANANANA
41117.65NANANANA
42116.51NANANANA
43115.93NANANANA
44115.31NANANANA
45115NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605480834rxzxmbpyz6u6eb/1ps941260548018.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605480834rxzxmbpyz6u6eb/1ps941260548018.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/11/t12605480834rxzxmbpyz6u6eb/34q4m1260548018.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t12605480834rxzxmbpyz6u6eb/34q4m1260548018.ps (open in new window)


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