Home » date » 2008 » May » 14 » attachments

Klassieke decompositie (additief model)

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 14 May 2008 08:16:02 -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/14/t12107746504taaaziosuarr3l.htm/, Retrieved Wed, 14 May 2008 16:17:30 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.74 1.73 1.74 1.73 1.74 1.73 1.73 1.74 1.75 1.73 1.74 1.74 1.74 1.74 1.76 1.76 1.78 1.77 1.78 1.79 1.83 1.82 1.84 1.83 1.83 1.84 1.83 1.83 1.83 1.83 1.83 1.84 1.83 1.84 1.84 1.83 1.84 1.85 1.85 1.85 1.85 1.84 1.84 1.85 1.84 1.84 1.84 1.84 1.85 1.84 1.85 1.84 1.84 1.84 1.84 1.84 1.83 1.83 1.82 1.83 1.83 1.83 1.87 1.87 1.86 1.87 1.87 1.89 1.89 1.88 1.88 1.87
 
Text written by user:
Eigen reeks (prijzen kattenvoeding). Veronique Van Hoof 2MAR02
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.74NANA0.00031250000000003NA
21.73NANA0.000625000000000024NA
31.74NANA0.00375000000000001NA
41.73NANA-0.000625000000000005NA
51.74NANA0.00249999999999987NA
61.73NANA-0.00427083333333335NA
71.731.733020833333331.73666666666667-0.00364583333333348-0.00302083333333303
81.741.73906251.737083333333330.001979166666666620.00093750000000048
91.751.740729166666671.738333333333330.002395833333333360.00927083333333356
101.731.740520833333331.740416666666670.000104166666666775-0.0105208333333335
111.741.743958333333331.743333333333330.000625000000000024-0.00395833333333351
121.741.742916666666671.74666666666667-0.00374999999999988-0.0029166666666669
131.741.750729166666671.750416666666670.00031250000000003-0.0107291666666667
141.741.755208333333331.754583333333330.000625000000000024-0.0152083333333333
151.761.763751.760.00375000000000001-0.00374999999999992
161.761.766458333333331.76708333333333-0.000625000000000005-0.00645833333333323
171.781.77751.7750.002499999999999870.00249999999999995
181.771.778645833333331.78291666666667-0.00427083333333335-0.00864583333333324
191.781.786770833333331.79041666666667-0.00364583333333348-0.00677083333333295
201.791.80031251.798333333333330.00197916666666662-0.0103124999999997
211.831.80781251.805416666666670.002395833333333360.0221875000000000
221.821.811354166666671.811250.0001041666666667750.00864583333333346
231.841.8168751.816250.0006250000000000240.0231249999999998
241.831.817083333333331.82083333333333-0.003749999999999880.0129166666666667
251.831.825729166666671.825416666666670.000312500000000030.00427083333333345
261.841.830208333333331.829583333333330.0006250000000000240.00979166666666664
271.831.835416666666671.831666666666670.00375000000000001-0.0054166666666664
281.831.8318751.8325-0.000625000000000005-0.00187499999999985
291.831.835833333333331.833333333333330.00249999999999987-0.00583333333333336
301.831.82906251.83333333333333-0.004270833333333350.000937500000000036
311.831.830104166666671.83375-0.00364583333333348-0.000104166666666350
321.841.83656251.834583333333330.001979166666666620.00343749999999976
331.831.838229166666671.835833333333330.00239583333333336-0.00822916666666673
341.841.837604166666671.83750.0001041666666667750.00239583333333315
351.841.839791666666671.839166666666670.0006250000000000240.000208333333333366
361.831.836666666666671.84041666666667-0.00374999999999988-0.0066666666666666
371.841.84156251.841250.00031250000000003-0.00156249999999991
381.851.842708333333331.842083333333330.0006250000000000240.00729166666666647
391.851.846666666666671.842916666666670.003750000000000010.00333333333333341
401.851.842708333333331.84333333333333-0.0006250000000000050.0072916666666667
411.851.845833333333331.843333333333330.002499999999999870.00416666666666665
421.841.839479166666671.84375-0.004270833333333350.000520833333333526
431.841.84093751.84458333333333-0.00364583333333348-0.000937500000000258
441.851.84656251.844583333333330.001979166666666620.00343749999999998
451.841.84656251.844166666666670.00239583333333336-0.00656250000000003
461.841.843854166666671.843750.000104166666666775-0.00385416666666671
471.841.843541666666671.842916666666670.000625000000000024-0.00354166666666655
481.841.838751.8425-0.003749999999999880.00125000000000020
491.851.84281251.84250.000312500000000030.00718750000000035
501.841.842708333333331.842083333333330.000625000000000024-0.00270833333333331
511.851.8451.841250.003750000000000010.00500000000000012
521.841.839791666666671.84041666666667-0.0006250000000000050.000208333333333588
531.841.841666666666671.839166666666670.00249999999999987-0.00166666666666671
541.841.833645833333331.83791666666667-0.004270833333333350.00635416666666688
551.841.833020833333331.83666666666667-0.003645833333333480.00697916666666676
561.841.837395833333331.835416666666670.001979166666666620.00260416666666674
571.831.838229166666671.835833333333330.00239583333333336-0.00822916666666651
581.831.838020833333331.837916666666670.000104166666666775-0.00802083333333314
591.821.8406251.840.000625000000000024-0.0206250000000001
601.831.838333333333331.84208333333333-0.00374999999999988-0.0083333333333333
611.831.844895833333331.844583333333330.00031250000000003-0.0148958333333333
621.831.848541666666671.847916666666670.000625000000000024-0.0185416666666669
631.871.856251.85250.003750000000000010.0137500000000002
641.871.856458333333331.85708333333333-0.0006250000000000050.013541666666667
651.861.864166666666671.861666666666670.00249999999999987-0.00416666666666665
661.871.86156251.86583333333333-0.004270833333333350.00843750000000032
671.87NANA-0.00364583333333348NA
681.89NANA0.00197916666666662NA
691.89NANA0.00239583333333336NA
701.88NANA0.000104166666666775NA
711.88NANA0.000625000000000024NA
721.87NANA-0.00374999999999988NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/1pwgc1210774556.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/1pwgc1210774556.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/2lldm1210774556.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/2lldm1210774556.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/3bico1210774556.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/3bico1210774556.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/4795a1210774556.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/14/t12107746504taaaziosuarr3l/4795a1210774556.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