Home » date » 2008 » May » 19 » attachments

Elke Van Buggenhout - Goudprijs opgave9

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 19 May 2008 09:41:10 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj.htm/, Retrieved Mon, 19 May 2008 17:43:18 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10.893 10.756 10.940 10.997 10.827 10.166 10.186 10.457 10.368 10.244 10.511 10.812 10.738 10.171 9.721 9.897 9.828 9.924 10.371 10.846 10.413 10.709 10.662 10.570 10.297 10.635 10.872 10.296 10.383 10.431 10.574 10.653 10.805 10.872 10.625 10.407 10.463 10.556 10.646 10.702 11.353 11.346 11.451 11.964 12.574 13.031 13.812 14.544 14.931 14.886 16.005 17.064 15.168 16.050 15.839 15.137 14.954 15.648 15.305 15.579 16.348 15.928 16.171 15.937 15.713 15.594 15.683 16.438 17.032 17.696 17.745 19.394
 
Text written by user:
 
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'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
110.893NANA0.125090277777777NA
210.756NANA-0.0277951388888898NA
310.94NANA0.124684027777778NA
410.997NANA0.199371527777779NA
510.827NANA-0.213607638888889NA
610.166NANA-0.0584513888888892NA
710.18610.544413194444410.5899583333333-0.0455451388888889-0.358413194444443
810.45710.486423611111110.559125-0.0727013888888889-0.0294236111111097
910.36810.320600694444410.4839583333333-0.1633576388888880.0473993055555564
1010.24410.472371527777810.38733333333330.0850381944444442-0.228371527777776
1110.51110.296694444444410.299875-0.003180555555555150.214305555555557
1210.81210.298621527777810.24816666666670.05045486111111170.513378472222222
1310.73810.370881944444410.24579166666670.1250902777777770.367118055555553
1410.17110.241913194444410.2697083333333-0.0277951388888898-0.0709131944444454
159.72110.412475694444410.28779166666670.124684027777778-0.691475694444447
169.89710.508413194444410.30904166666670.199371527777779-0.611413194444443
179.82810.121100694444410.3347083333333-0.213607638888889-0.293100694444442
189.92410.272465277777810.3309166666667-0.0584513888888892-0.348465277777777
1910.37110.256913194444410.3024583333333-0.04554513888888890.114086805555555
2010.84610.230715277777810.3034166666667-0.07270138888888890.615284722222222
2110.41310.207350694444410.3707083333333-0.1633576388888880.205649305555555
2210.70910.520329861111110.43529166666670.08503819444444420.188670138888888
2310.66210.471861111111110.4750416666667-0.003180555555555150.190138888888891
2410.5710.569746527777810.51929166666670.05045486111111170.000253472222221163
2510.29710.673965277777810.5488750.125090277777777-0.376965277777778
2610.63510.521496527777810.5492916666667-0.02779513888888980.113503472222222
2710.87210.682267361111110.55758333333330.1246840277777780.189732638888888
2810.29610.780079861111110.58070833333330.199371527777779-0.484079861111111
2910.38310.372350694444410.5859583333333-0.2136076388888890.0106493055555568
3010.43110.519173611111110.577625-0.0584513888888892-0.0881736111111131
3110.57410.532204861111110.57775-0.04554513888888890.0417951388888884
3210.65310.508673611111110.581375-0.07270138888888890.144326388888889
3310.80510.405309027777810.5686666666667-0.1633576388888880.399690972222222
3410.87210.661204861111110.57616666666670.08503819444444420.210795138888891
3510.62510.630319444444410.6335-0.00318055555555515-0.00531944444444399
3610.40710.762496527777810.71204166666670.0504548611111117-0.355496527777778
3710.46310.911798611111110.78670833333330.125090277777777-0.448798611111112
3810.55610.850079861111110.877875-0.0277951388888898-0.294079861111113
3910.64611.130892361111111.00620833333330.124684027777778-0.484892361111111
4010.70211.369246527777811.1698750.199371527777779-0.667246527777777
4111.35311.179017361111111.392625-0.2136076388888890.173982638888887
4211.34611.639340277777811.6977916666667-0.0584513888888892-0.293340277777778
4311.45112.010788194444412.0563333333333-0.0455451388888889-0.559788194444446
4411.96412.350215277777812.4229166666667-0.0727013888888889-0.386215277777776
4512.57412.663267361111112.826625-0.163357638888888-0.0892673611111103
4613.03113.400038194444413.3150.0850381944444442-0.369038194444443
4713.81213.735861111111113.7390416666667-0.003180555555555150.0761388888888899
4814.54414.144454861111114.0940.05045486111111170.399545138888891
4914.93114.597923611111114.47283333333330.1250902777777770.333076388888891
5014.88614.760079861111114.787875-0.02779513888888980.125920138888890
5116.00515.143934027777815.019250.1246840277777780.861065972222224
5217.06415.426829861111115.22745833333330.1993715277777791.63717013888889
5315.16815.185100694444415.3987083333333-0.213607638888889-0.0171006944444425
5416.0515.445590277777815.5040416666667-0.05845138888888920.604409722222226
5515.83915.560663194444415.6062083333333-0.04554513888888890.278336805555558
5615.13715.635965277777815.7086666666667-0.0727013888888889-0.498965277777776
5714.95415.595642361111115.759-0.163357638888888-0.641642361111112
5815.64815.803996527777815.71895833333330.0850381944444442-0.155996527777777
5915.30515.691527777777815.6947083333333-0.00318055555555515-0.386527777777777
6015.57915.748871527777815.69841666666670.0504548611111117-0.169871527777778
6116.34815.798006944444415.67291666666670.1250902777777770.549993055555555
6215.92815.692829861111115.720625-0.02779513888888980.23517013888889
6316.17115.986100694444415.86141666666670.1246840277777780.184899305555554
6415.93716.232704861111116.03333333333330.199371527777779-0.29570486111111
6515.71316.006725694444416.2203333333333-0.213607638888889-0.293725694444444
6615.59416.422506944444416.4809583333333-0.0584513888888892-0.828506944444445
6715.683NANA-0.0455451388888889NA
6816.438NANA-0.0727013888888889NA
6917.032NANA-0.163357638888888NA
7017.696NANA0.0850381944444442NA
7117.745NANA-0.00318055555555515NA
7219.394NANA0.0504548611111117NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/19dse1211211668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/19dse1211211668.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/2clhw1211211668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/2clhw1211211668.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/3b9e51211211668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/3b9e51211211668.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/4j6dv1211211668.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/19/t121121179370dfwy6fkc1o6sj/4j6dv1211211668.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 12 ;
 
Parameters (R input):
par1 = additive ; 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