Home » date » 2008 » May » 15 » attachments

Decompositie Additief model Prijs per liter diesel Inez Van Dijck

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 15 May 2008 07:13:06 -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/15/t1210857221e467xhooptshu1i.htm/, Retrieved Thu, 15 May 2008 15:13:46 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.73 0.74 0.75 0.74 0.76 0.76 0.78 0.79 0.89 0.88 0.88 0.84 0.76 0.77 0.76 0.77 0.78 0.79 0.78 0.76 0.78 0.76 0.74 0.73 0.72 0.71 0.73 0.75 0.75 0.72 0.72 0.72 0.74 0.78 0.74 0.74 0.75 0.78 0.81 0.75 0.7 0.71 0.71 0.73 0.74 0.74 0.75 0.74 0.74 0.73 0.76 0.8 0.83 0.81 0.83 0.88 0.89 0.93 0.91 0.9 0.86 0.88 0.93 0.98 0.97 1.03 1.06 1.06 1.08 1.09 1.04 1
 
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 time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
10.73NANA-0.0182812499999999NA
20.74NANA-0.0147395833333333NA
30.75NANA0.00182291666666670NA
40.74NANA0.00380208333333343NA
50.76NANA0.00046874999999999NA
60.76NANA-0.00796875000000005NA
70.780.7891145833333330.79625-0.0071354166666667-0.00911458333333315
80.790.8019270833333330.798750.00317708333333333-0.0119270833333334
90.890.8156770833333330.8004166666666670.01526041666666670.0743229166666667
100.880.8283854166666670.8020833333333330.02630208333333330.0516145833333334
110.880.8088020833333330.8041666666666670.004635416666666530.0711979166666667
120.840.798906250.80625-0.007343749999999950.0410937499999999
130.760.789218750.8075-0.0182812499999999-0.0292187499999998
140.770.7915104166666670.80625-0.0147395833333333-0.0215104166666666
150.760.8022395833333330.8004166666666670.00182291666666670-0.0422395833333332
160.770.7946354166666670.7908333333333330.00380208333333343-0.0246354166666667
170.780.780468750.780.00046874999999999-0.000468749999999907
180.790.7616145833333330.769583333333333-0.007968750000000050.0283854166666667
190.780.7561979166666670.763333333333333-0.00713541666666670.0238020833333333
200.760.762343750.7591666666666670.00317708333333333-0.00234375000000009
210.780.7706770833333330.7554166666666670.01526041666666670.00932291666666685
220.760.7796354166666670.7533333333333330.0263020833333333-0.0196354166666666
230.740.7558854166666670.751250.00463541666666653-0.0158854166666667
240.730.7397395833333330.747083333333333-0.00734374999999995-0.00973958333333336
250.720.7233854166666670.741666666666667-0.0182812499999999-0.0033854166666667
260.710.7227604166666670.7375-0.0147395833333333-0.0127604166666667
270.730.7359895833333330.7341666666666670.00182291666666670-0.00598958333333333
280.750.7371354166666670.7333333333333330.003802083333333430.0128645833333334
290.750.7346354166666670.7341666666666670.000468749999999990.0153645833333332
300.720.7266145833333330.734583333333333-0.00796875000000005-0.0066145833333332
310.720.7291145833333330.73625-0.0071354166666667-0.00911458333333326
320.720.743593750.7404166666666670.00317708333333333-0.0235937499999999
330.740.7619270833333330.7466666666666670.0152604166666667-0.0219270833333334
340.780.7763020833333330.750.02630208333333330.00369791666666675
350.740.7525520833333330.7479166666666670.00463541666666653-0.0125520833333334
360.740.7380729166666670.745416666666667-0.007343749999999950.00192708333333336
370.750.7263020833333330.744583333333333-0.01828124999999990.0236979166666665
380.780.729843750.744583333333333-0.01473958333333330.05015625
390.810.7468229166666670.7450.001822916666666700.0631770833333334
400.750.7471354166666670.7433333333333330.003802083333333430.00286458333333339
410.70.7425520833333330.7420833333333330.00046874999999999-0.0425520833333333
420.710.734531250.7425-0.00796875000000005-0.02453125
430.710.7349479166666660.742083333333333-0.0071354166666667-0.0249479166666665
440.730.7427604166666670.7395833333333330.00317708333333333-0.0127604166666666
450.740.7506770833333330.7354166666666670.0152604166666667-0.0106770833333333
460.740.761718750.7354166666666670.0263020833333333-0.0217187499999999
470.750.7475520833333330.7429166666666670.004635416666666530.00244791666666677
480.740.745156250.7525-0.00734374999999995-0.00515624999999986
490.740.7433854166666670.761666666666666-0.0182812499999999-0.00338541666666659
500.730.7581770833333330.772916666666667-0.0147395833333333-0.0281770833333334
510.760.7872395833333330.7854166666666670.00182291666666670-0.0272395833333332
520.80.8033854166666670.7995833333333330.00380208333333343-0.00338541666666659
530.830.8146354166666670.8141666666666670.000468749999999990.0153645833333333
540.810.819531250.8275-0.00796875000000005-0.00953124999999988
550.830.832031250.839166666666667-0.0071354166666667-0.00203124999999993
560.880.853593750.8504166666666670.003177083333333330.0264062500000001
570.890.8790104166666670.863750.01526041666666670.0109895833333334
580.930.9046354166666670.8783333333333340.02630208333333330.0253645833333332
590.910.8963020833333330.8916666666666670.004635416666666530.0136979166666666
600.90.8993229166666670.906666666666667-0.007343749999999950.000677083333333495
610.860.9071354166666670.925416666666667-0.0182812499999999-0.0471354166666667
620.880.9277604166666670.9425-0.0147395833333333-0.0477604166666665
630.930.9597395833333330.9579166666666670.00182291666666670-0.0297395833333333
640.980.9763020833333330.97250.003802083333333430.00369791666666675
650.970.9850520833333330.9845833333333330.00046874999999999-0.0150520833333334
661.030.9861979166666670.994166666666667-0.007968750000000050.0438020833333335
671.06NANA-0.0071354166666667NA
681.06NANA0.00317708333333333NA
691.08NANA0.0152604166666667NA
701.09NANA0.0263020833333333NA
711.04NANA0.00463541666666653NA
721NANA-0.00734374999999995NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/1fdn21210857184.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/1fdn21210857184.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/2dvfz1210857184.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/2dvfz1210857184.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/3ffzw1210857184.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/3ffzw1210857184.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/4hhwj1210857184.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/15/t1210857221e467xhooptshu1i/4hhwj1210857184.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