Home » date » 2010 » Jun » 02 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 02 Jun 2010 12:46:32 +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/Jun/02/t1275482823com4fe58eetshgm.htm/, Retrieved Wed, 02 Jun 2010 14:47:08 +0200
 
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/Jun/02/t1275482823com4fe58eetshgm.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:
KDGP2W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2 2.4 1.5 1.2 1.5 0.6 2.7 3.7 4.9 6.6 7.4 7.2 5.3 4.7 6.1 6.6 7 7.5 6.6 7.8 4.7 5.4 4.3 4.5 5.8 4.6 5.2 3.6 4.8 6.7 6.3 4.8 8.7 6.8 7.4 9 7.9 9.1 8.7 9.8 6.4 6.1 4.7 4.8 4.2 2.8 6.1 5.8 4.9 4.6 4.1 3.6 5.9 4.5 4.8 5.7 5 7 4.6 2.6 5 4.1 3.2 0 2.3 3.8 4.5 5.9 5 4.2 4.5 6
 
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
12NANA1.07148892459575NA
22.4NANA0.976721871038515NA
31.5NANA0.963823462607119NA
41.2NANA0.77012676286413NA
51.5NANA0.944886905217081NA
60.6NANA1.04704606135604NA
72.73.367036447717913.61250.9320516118250260.801892121432185
83.73.886196764409143.845833333333331.010495366693600.952087664187675
94.94.220241890207874.133333333333331.021026263759971.16107088822784
106.64.971619429779824.551.092663610940621.32753524142782
117.45.630482802649495.004166666666671.125158928089821.31427450529071
127.25.766566900380575.520833333333331.044510231012331.24857651430782
135.36.397681787273795.970833333333331.071488924595750.828425072741616
144.76.157417462005306.304166666666670.9767218710385150.763307024251907
156.16.23272505819276.466666666666670.9638234626071190.978705131871935
166.64.93522900535436.408333333333330.770126762864131.33732396061856
1775.885858013748076.229166666666670.9448869052170811.18929134607895
187.56.269188292369275.98751.047046061356041.19632712405988
196.65.495220961385055.895833333333330.9320516118250261.20104360614036
207.85.974553855575925.91251.010495366693601.30553681304930
214.75.994275023490815.870833333333331.021026263759970.78408147467063
225.46.23728811245275.708333333333331.092663610940620.865760872777215
234.36.178997780093285.491666666666671.125158928089820.695905736340155
244.55.605538239766165.366666666666671.044510231012330.802777504589411
255.85.701213986286555.320833333333331.071488924595751.01732718925321
264.65.062675031549645.183333333333330.9767218710385150.908610560886027
275.25.03597759212225.2250.9638234626071191.03257012265789
283.64.197190857609515.450.770126762864130.857716535209067
294.85.326799928161295.63750.9448869052170810.901103864371506
306.76.234286756990745.954166666666671.047046061356041.07470192841018
316.35.805904831993396.229166666666670.9320516118250261.08510218171057
324.86.572430280869636.504166666666671.010495366693600.730323456449794
338.76.981267078458796.83751.021026263759971.24619211702192
346.87.912705649228327.241666666666671.092663610940620.859377348462742
357.48.513702555879677.566666666666671.125158928089820.869187048928491
3697.94698200761887.608333333333331.044510231012331.13250539530248
377.98.054025083211387.516666666666671.071488924595750.980876011482451
389.17.276577939236947.450.9767218710385151.25058785544380
398.76.99976789718427.26250.9638234626071191.24289835431540
409.85.320292386786366.908333333333330.770126762864131.84200402675980
416.46.318931178639236.68750.9448869052170811.01282951484498
426.16.805799398814246.51.047046061356040.896294416356554
434.75.817555477141216.241666666666670.9320516118250260.80789947228997
444.85.991395445020815.929166666666671.010495366693600.801148921657153
454.25.666695763867835.551.021026263759970.741172664814684
462.85.572584415797165.11.092663610940620.502459862620037
476.15.424203665833024.820833333333331.125158928089821.12458904123085
485.84.944015093458364.733333333333331.044510231012331.17313557712925
494.95.004746185299314.670833333333331.071488924595750.9790706298739
504.64.6028018172694.71250.9767218710385150.999391280055011
514.14.610288896137394.783333333333330.9638234626071190.889315201794638
523.63.844216091296784.991666666666670.770126762864130.936471809727429
535.94.822860245378855.104166666666670.9448869052170811.22334044525823
544.55.139251084489224.908333333333331.047046061356040.875613961260126
554.84.454429994847104.779166666666670.9320516118250261.07757895074177
565.74.812484183878284.76251.010495366693601.18441947697093
5754.803077715770854.704166666666671.021026263759971.04099918757978
5874.935197309415134.516666666666671.092663610940621.41838300702704
594.64.744420146778764.216666666666671.125158928089820.969560000524656
602.64.217210057712284.03751.044510231012330.616521340985901
6154.281491161197183.995833333333331.071488924595751.16781742896368
624.13.898748135228743.991666666666670.9767218710385151.05161961167811
633.23.8552938504284840.9638234626071190.830027521674996
6402.990658929122373.883333333333330.770126762864130
652.33.555136980879273.76250.9448869052170810.646951161761187
663.84.083479639288553.91.047046061356040.930578902228116
674.5NANA0.932051611825026NA
685.9NANA1.01049536669360NA
695NANA1.02102626375997NA
704.2NANA1.09266361094062NA
714.5NANA1.12515892808982NA
726NANA1.04451023101233NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/12pcl1275482790.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/12pcl1275482790.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/22pcl1275482790.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/22pcl1275482790.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/3dhto1275482790.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/3dhto1275482790.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/4dhto1275482790.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275482823com4fe58eetshgm/4dhto1275482790.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