Home » date » 2009 » Dec » 03 »

SHW WS9

*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: Thu, 03 Dec 2009 11:31:33 -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/03/t125986515585q4g3jc0cmacw4.htm/, Retrieved Thu, 03 Dec 2009 19:32:40 +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/03/t125986515585q4g3jc0cmacw4.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 «
1.59 1.26 1.13 1.92 2.61 2.26 2.41 2.26 2.03 2.86 2.55 2.27 2.26 2.57 3.07 2.76 2.51 2.87 3.14 3.11 3.16 2.47 2.57 2.89 2.63 2.38 1.69 1.96 2.19 1.87 1.6 1.63 1.22 1.21 1.49 1.64 1.66 1.77 1.82 1.78 1.28 1.29 1.37 1.12 1.51 2.24 2.94 3.09 3.46 3.64 4.39 4.15 5.21 5.8 5.91 5.39 5.46 4.72 3.14 2.63
 
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
11.59NANA1.02798328731299NA
21.26NANA1.05144617211418NA
31.13NANA1.06342910796478NA
41.92NANA1.03020636421097NA
52.61NANA1.00853101297762NA
62.26NANA1.03219333961335NA
72.412.094974316891472.123750.9864505317911551.15037209791477
82.262.038565385858112.206250.9239956423152911.10862276759824
92.032.034370261523752.341666666666670.8687702184443080.997851786566876
102.862.329861454243872.45750.9480616293973041.22754080281919
112.552.535249964492312.488333333333331.018854640787261.00581798075704
122.272.610162547352242.509583333333331.040078053070790.869677638391792
132.262.637205458327522.565416666666671.027983287312990.856967739416579
142.572.766617740375442.631251.051446172114180.928932090073002
153.072.885880741739432.713751.063429107964781.06380002319486
162.762.827487217107352.744583333333331.030206364210970.9761317339654
172.512.752449222918082.729166666666671.008531012977620.911915096961884
182.872.844552811751142.755833333333331.032193339613351.00894593629752
193.142.759184341630842.797083333333330.9864505317911551.13801747589799
203.112.591422778510092.804583333333330.9239956423152911.20011293633378
213.162.379706423355372.739166666666670.8687702184443081.32789489030518
222.472.510783215187192.648333333333330.9480616293973040.983756775598744
232.572.650720157114862.601666666666671.018854640787260.969547838953048
242.892.648732108486952.546666666666671.040078053070791.09108806841582
252.632.509135873783112.440833333333331.027983287312991.04816962185258
262.382.434097888444332.3151.051446172114180.977774974169629
271.692.310299737053492.17251.063429107964780.731506813983969
281.962.100762477686862.039166666666671.030206364210970.932994577358477
292.191.958231050198201.941666666666671.008531012977621.11835628373799
301.871.903966631028471.844583333333331.032193339613350.98216007020558
311.61.728343535909091.752083333333330.9864505317911550.925741883345211
321.631.558087651854161.686250.9239956423152911.04615423789558
331.221.447588376482831.666250.8687702184443080.842781014147272
341.211.577732561588681.664166666666670.9480616293973040.766923387054650
351.491.649270949774381.618751.018854640787260.90342948210167
361.641.619054835946871.556666666666671.040078053070791.01293666130887
371.661.565532881303741.522916666666671.027983287312991.06034182981682
381.771.56884530930871.492083333333331.051446172114181.12821830775651
391.821.576976748019441.482916666666671.063429107964781.15410706104943
401.781.584371537626121.537916666666671.030206364210971.12347385554969
411.281.655251525049511.641251.008531012977620.773296372562902
421.291.818810680510361.762083333333331.032193339613350.709254687045285
431.371.871789884073721.89750.9864505317911550.731919758545957
441.121.894576064930652.050416666666670.9239956423152910.591161273876328
451.511.942063425814052.235416666666670.8687702184443080.777523524684607
462.242.314455452766172.441250.9480616293973040.967830250231353
472.942.754728235028562.703751.018854640787261.06725591389218
483.093.177871817986713.055416666666671.040078053070790.972348847587445
493.463.528552633701823.43251.027983287312990.98057202461795
503.643.995057351462173.799583333333331.051446172114180.911125843704792
514.394.404811984282464.142083333333331.063429107964780.99663731747568
524.154.543210066170364.411.030206364210970.913451048830367
535.214.560241063680454.521666666666671.008531012977621.14248346244116
545.84.656052122772574.510833333333331.032193339613351.24569052215555
555.91NANA0.986450531791155NA
565.39NANA0.923995642315291NA
575.46NANA0.868770218444308NA
584.72NANA0.948061629397304NA
593.14NANA1.01885464078726NA
602.63NANA1.04007805307079NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t125986515585q4g3jc0cmacw4/124e31259865090.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t125986515585q4g3jc0cmacw4/124e31259865090.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t125986515585q4g3jc0cmacw4/268y11259865090.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t125986515585q4g3jc0cmacw4/268y11259865090.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t125986515585q4g3jc0cmacw4/323al1259865090.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t125986515585q4g3jc0cmacw4/323al1259865090.ps (open in new window)


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