Home » date » 2009 » Dec » 06 »

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: Sun, 06 Dec 2009 12:38:59 -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/06/t1260128386ih75oybn8r2ixds.htm/, Retrieved Sun, 06 Dec 2009 20:39:52 +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/06/t1260128386ih75oybn8r2ixds.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 «
286602 283042 276687 277915 277128 277103 275037 270150 267140 264993 287259 291186 292300 288186 281477 282656 280190 280408 276836 275216 274352 271311 289802 290726 292300 278506 269826 265861 269034 264176 255198 253353 246057 235372 258556 260993 254663 250643 243422 247105 248541 245039 237080 237085 225554 226839 247934 248333 246969 245098 246263 255765 264319 268347 273046 273963 267430 271993 292710 295881 293299
 
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
1286602NANA1.03453131571099NA
2283042NANA1.01221054805438NA
3276687NANA0.99189929062336NA
4277915NANA1.00205469182651NA
5277128NANA1.01206860509960NA
6277103NANA1.00753910576043NA
7275037275806.405915469278090.9166666670.9917850220403430.99721034066299
8270150274446.233453016278542.6666666670.9852933366989250.984345810110191
9267140268821.413512387278956.5833333330.9636675725668920.99374523967262
10264993265669.392744893279353.7083333330.9510143764688740.997454005755408
11287259282964.383047754279678.8333333331.011747580877901.01517723504983
12291186290074.898160633279944.1251.036188554271801.00383039637836
13292300289830.974288287280156.7916666671.034531315710991.00851884695132
14288186283867.194026256280442.8333333331.012210548054381.01521417784313
15281477278678.486589166280954.4166666670.991899290623361.01004208629480
16282656282096.599742731281518.1666666671.002054691826511.00198300957112
17280190285289.362411437281887.3751.012068605099600.982125648259947
18280408284099.999730875281974.1666666671.007539105760430.987004576788552
19276836279638.7458893852819550.9917850220403430.98997726198324
20275216277410.981103143281551.6666666670.9852933366989250.992087619983842
21274352270465.711460895280662.8750.9636675725668921.01436887699411
22271311265787.239276377279477.6250.9510143764688741.02078264080195
23289802281582.5044768722783131.011747580877901.02919036301065
24290726287202.28126653277171.8333333331.036188554271801.01226911819060
25292300285110.537211113275593.9166666671.034531315710991.02521640504491
26278506277124.395635831273781.3751.012210548054381.00498550248887
27269826269490.564789259271691.4583333330.991899290623361.00124470113083
28265861269567.784673987269015.0416666671.002054691826510.986249155556661
29269034269428.518418993266215.6666666671.012068605099600.998535721380543
30264176265662.747768992263674.8751.007539105760430.994403627224826
31255198258724.768507741260867.7916666670.9917850220403430.986368647547422
32253353254342.267157122258138.6250.9852933366989250.996110488562598
33246057246580.849299485255877.50.9636675725668920.997875547509171
34235372241553.689063192253995.8333333330.9510143764688740.974408633181442
35258556255325.083227989252360.4583333331.011747580877901.01265412990829
36260993259782.012125543250709.2083333331.036188554271801.00466155398732
37254663257760.632817661249156.9166666671.034531315710990.987982521676022
38250643250749.014507980247724.1666666671.012210548054380.999577208675422
39243422244197.711486283246192.0416666670.991899290623360.996823428517975
40247105245485.571274436244982.2083333331.002054691826511.00659683873540
41248541247131.044606691244184.0833333331.012068605099601.00570529451512
42245039245047.6160684162432141.007539105760430.999964839207356
43237080240374.886003078242365.9166666670.9917850220403430.986292719435608
44237085238258.010297737241814.2916666670.9852933366989250.995076722514928
45225554232920.018249223241701.6250.9636675725668920.968375331993398
46226839230317.454205212242180.8333333330.9510143764688740.984897131582077
47247934246056.084234224243199.0833333331.011747580877901.00763206393218
48248333253687.625969071244827.6666666671.036188554271800.978892837407357
49246969255836.921836097247297.4166666671.034531315710990.965337599544065
50245098253389.281371701250332.5833333331.012210548054380.967278484208894
51246263251559.5466921532536140.991899290623360.978945157272706
52255765257768.799439124257240.251.002054691826510.99222636935314
53264319264137.086395331260987.3333333331.012068605099601.00068870906071
54268347266830.779458141264834.1666666671.007539105760431.00568232999558
55273046266538.009586999268745.750.9917850220403431.02441674425004
56273963NANA0.985293336698925NA
57267430NANA0.963667572566892NA
58271993NANA0.951014376468874NA
59292710NANA1.01174758087790NA
60295881NANA1.03618855427180NA
61293299NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/1ay391260128337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/1ay391260128337.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/22y3d1260128337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/22y3d1260128337.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/3sjdi1260128337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/3sjdi1260128337.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/46hpw1260128337.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260128386ih75oybn8r2ixds/46hpw1260128337.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