Home » date » 2011 » May » 17 »

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 17 May 2011 15:06:31 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv.htm/, Retrieved Tue, 17 May 2011 17:03:30 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,41 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,42 0,43 0,43 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,44 0,43 0,44 0,44 0,46 0,46 0,46 0,46 0,46 0,45 0,45 0,46 0,46 0,46 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47 0,47
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 216.218.223.82


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.41NANA0.99266182727845NA
20.41NANA1.00382953109282NA
30.41NANA1.00155524640923NA
40.41NANA1.00820569937968NA
50.41NANA1.00592394830781NA
60.41NANA1.00363778700629NA
70.410.4104846052069750.411.001181963919450.998819431469955
80.410.4096231817572680.410.9990809311152871.00091991434937
90.410.4069014060088040.410.9924424536800091.00761509777415
100.410.4079481537524650.410.9949954969572321.00502967406192
110.410.40879046224590.410.997049907916831.00295882087721
120.410.4097684348441330.410.9994352069369091.00056511223456
130.410.4069913491841640.410.992661827278451.00739241957321
140.410.4115701077480580.411.003829531092820.996185078268563
150.410.4106376510277850.411.001555246409230.998447168626187
160.410.4137844224537420.4104166666666671.008205699379680.99085412053141
170.410.4136862237415850.411251.005923948307810.991089324396048
180.410.4135824047288440.4120833333333331.003637787006290.991338111370592
190.410.4134047192684070.4129166666666671.001181963919450.9917641983516
200.410.413369735248950.413750.9990809311152870.991848132648317
210.410.411450100588170.4145833333333330.9924424536800090.996475634381672
220.420.4133377126943170.4154166666666670.9949954969572321.01611826625317
230.420.4150220241703810.416250.997049907916831.01199448593016
240.420.4168477675599360.4170833333333330.9994352069369091.00756207106138
250.420.4148499219834520.4179166666666670.992661827278451.01241431598185
260.420.420353616145120.418751.003829531092820.999158765069365
270.420.4202358888058730.4195833333333331.001555246409230.999438675248458
280.420.4234463937394640.421.008205699379680.991861086101056
290.420.4224880582892790.421.005923948307810.994110938189938
300.420.4219460529538960.4204166666666671.003637787006290.995387910515402
310.420.4217479023010690.421251.001181963919450.995855575590223
320.420.4221116933962090.42250.9990809311152870.99499731130588
330.420.4209610074359370.4241666666666670.9924424536800090.997717110566153
340.420.4237022491209540.4258333333333330.9949954969572320.991262144280246
350.420.4262388356344450.42750.997049907916830.985363052089896
360.430.4289242763104230.4291666666666670.9994352069369091.00250795711269
370.430.4276718039191320.4308333333333330.992661827278451.00544388491253
380.440.4341562721976460.43251.003829531092821.01345996401889
390.440.4348419028160080.4341666666666671.001555246409231.01186200582462
400.440.4394096506463090.4358333333333331.008205699379681.00134350566225
410.440.4400917273846650.43751.005923948307810.999791572122452
420.440.4403460790490120.438751.003637787006290.99921407487093
430.440.4396857458212920.4391666666666671.001181963919451.0007147245088
440.440.438763042248130.4391666666666670.9990809311152871.00281919312422
450.440.4358476442411370.4391666666666670.9924424536800091.00952708088188
460.440.4377980186611820.440.9949954969572321.00502967406192
470.440.4403637093299330.4416666666666670.997049907916830.999174070609754
480.440.443082941742030.4433333333333330.9994352069369090.99304206627791
490.430.441734513138910.4450.992661827278450.973435371722426
500.440.4483771905547950.4466666666666671.003829531092820.981316644264554
510.440.4486132874541350.4479166666666671.001555246409230.98080019541326
520.460.452432307596630.448751.008205699379681.01672668435986
530.460.4526657767385130.451.005923948307811.01620229237194
540.460.4533097337978430.4516666666666671.003637787006291.01475870845769
550.460.4542863161284510.453751.001181963919451.01257727487863
560.460.455830674821350.456250.9990809311152871.00914665337142
570.450.4552829756257040.458750.9924424536800090.988396281195352
580.450.4581125100573920.4604166666666670.9949954969572320.982291446141963
590.460.4598892700266380.461250.997049907916831.00024077529218
600.460.4618223518720970.4620833333333330.9994352069369090.996053998112674
610.460.4595197042109820.4629166666666670.992661827278451.0010452126092
620.470.4655259450442970.463751.003829531092821.00961075317784
630.470.4657231895802920.4651.001555246409231.00918315968668
640.470.4704959930438490.4666666666666671.008205699379680.998945808144635
650.470.4706885808123610.4679166666666671.005923948307810.998537077718834
660.470.4704552126592010.468751.003637787006290.99903239958459
670.47NANA1.00118196391945NA
680.47NANA0.999080931115287NA
690.47NANA0.992442453680009NA
700.47NANA0.994995496957232NA
710.47NANA0.99704990791683NA
720.47NANA0.999435206936909NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/1n8s71305644788.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/1n8s71305644788.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/2165n1305644788.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/2165n1305644788.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/3yto01305644788.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/3yto01305644788.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/4oilu1305644788.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305644604gklpdaacccwjfzv/4oilu1305644788.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