Home » date » 2008 » May » 28 »

Robin Van Wijnsberghe - Decomposition eigen reeks - 2mar03

R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Wed, 28 May 2008 06:33:27 -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/28/t1211978428khufw1578sanqvr.htm/, Retrieved Wed, 28 May 2008 14:40:33 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,61 1,6 1,59 1,6 1,6 1,59 1,59 1,58 1,59 1,59 1,58 1,58 1,58 1,57 1,57 1,57 1,57 1,58 1,58 1,57 1,58 1,57 1,57 1,57 1,57 1,57 1,57 1,59 1,6 1,6 1,6 1,6 1,61 1,61 1,62 1,62 1,62 1,62 1,62 1,62 1,61 1,59 1,58 1,56 1,56 1,54 1,55 1,56 1,57 1,58 1,59 1,6 1,6 1,61 1,61 1,62 1,61 1,6 1,6 1,6 1,61 1,62 1,63 1,63 1,66 1,66 1,66 1,65 1,65 1,64 1,64 1,65 1,64
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
11.61NANA-0.000260416666666744NA
21.6NANA-0.000885416666666842NA
31.59NANA0.000989583333333229NA
41.6NANA0.00817708333333346NA
51.6NANA0.00786458333333336NA
61.59NANA0.00744791666666663NA
71.591.594843751.590416666666670.00442708333333327-0.00484375000000004
81.581.586510416666671.58791666666667-0.00140625000000009-0.00651041666666652
91.591.585781251.58583333333333-5.2083333333323e-050.00421875000000016
101.591.572447916666671.58375-0.01130208333333310.0175520833333331
111.581.573385416666671.58125-0.007864583333333270.00661458333333331
121.581.572447916666671.57958333333333-0.007135416666666540.00755208333333335
131.581.578489583333331.57875-0.0002604166666667440.00151041666666685
141.571.577031251.57791666666667-0.000885416666666842-0.00703125000000004
151.571.578072916666671.577083333333330.000989583333333229-0.00807291666666643
161.571.584010416666671.575833333333330.00817708333333346-0.0140104166666664
171.571.582447916666671.574583333333330.00786458333333336-0.0124479166666664
181.581.581197916666671.573750.00744791666666663-0.00119791666666647
191.581.577343751.572916666666670.004427083333333270.00265625000000003
201.571.571093751.5725-0.00140625000000009-0.00109374999999989
211.581.572447916666671.5725-5.2083333333323e-050.00755208333333335
221.571.562031251.57333333333333-0.01130208333333310.00796874999999986
231.571.567552083333331.57541666666667-0.007864583333333270.00244791666666666
241.571.570364583333331.5775-0.00713541666666654-0.000364583333333446
251.571.578906251.57916666666667-0.000260416666666744-0.00890625000000012
261.571.580364583333331.58125-0.000885416666666842-0.0103645833333332
271.571.584739583333331.583750.000989583333333229-0.0147395833333335
281.591.594843751.586666666666670.00817708333333346-0.00484375000000004
291.61.598281251.590416666666670.007864583333333360.00171875000000021
301.61.602031251.594583333333330.00744791666666663-0.00203124999999993
311.61.603177083333331.598750.00442708333333327-0.00317708333333333
321.61.601510416666671.60291666666667-0.00140625000000009-0.00151041666666663
331.611.607031251.60708333333333-5.2083333333323e-050.00296874999999996
341.611.599114583333331.61041666666667-0.01130208333333310.0108854166666668
351.621.604218751.61208333333333-0.007864583333333270.0157812500000001
361.621.604947916666671.61208333333333-0.007135416666666540.0150520833333334
371.621.610572916666671.61083333333333-0.0002604166666667440.0094270833333332
381.621.607447916666671.60833333333333-0.0008854166666668420.0125520833333332
391.621.605572916666671.604583333333330.0009895833333332290.0144270833333333
401.621.607760416666671.599583333333330.008177083333333460.0122395833333333
411.611.601614583333331.593750.007864583333333360.00838541666666681
421.591.595781251.588333333333330.00744791666666663-0.00578124999999985
431.581.588177083333331.583750.00442708333333327-0.00817708333333345
441.561.578593751.58-0.00140625000000009-0.0185937500000000
451.561.577031251.57708333333333-5.2083333333323e-05-0.0170312500000001
461.541.563697916666671.575-0.0113020833333331-0.0236979166666667
471.551.565885416666671.57375-0.00786458333333327-0.0158854166666664
481.561.567031251.57416666666667-0.00713541666666654-0.0070312499999996
491.571.575989583333331.57625-0.000260416666666744-0.00598958333333321
501.581.579114583333331.58-0.0008854166666668420.00088541666666675
511.591.585572916666671.584583333333330.0009895833333332290.0044270833333333
521.61.597343751.589166666666670.008177083333333460.00265625000000025
531.61.601614583333331.593750.00786458333333336-0.00161458333333320
541.611.604947916666671.59750.007447916666666630.00505208333333362
551.611.605260416666671.600833333333330.004427083333333270.00473958333333369
561.621.602760416666671.60416666666667-0.001406250000000090.0172395833333334
571.611.607447916666671.6075-5.2083333333323e-050.00255208333333368
581.61.599114583333331.61041666666667-0.01130208333333310.00088541666666675
591.61.606302083333331.61416666666667-0.00786458333333327-0.00630208333333315
601.61.611614583333331.61875-0.00713541666666654-0.0116145833333330
611.611.622656251.62291666666667-0.000260416666666744-0.0126562500000000
621.621.625364583333331.62625-0.000885416666666842-0.00536458333333290
631.631.630156251.629166666666670.000989583333333229-0.000156249999999636
641.631.640677083333331.63250.00817708333333346-0.0106770833333332
651.661.643697916666671.635833333333330.007864583333333360.0163020833333336
661.661.647031251.639583333333330.007447916666666630.0129687500000006
671.661.647343751.642916666666670.004427083333333270.0126562500000003
681.65NANA-0.00140625000000009NA
691.65NANA-5.2083333333323e-05NA
701.64NANA-0.0113020833333331NA
711.64NANA-0.00786458333333327NA
721.65NANA-0.00713541666666654NA
731.64NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978428khufw1578sanqvr/18m3o1211978000.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978428khufw1578sanqvr/18m3o1211978000.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978428khufw1578sanqvr/2g3wy1211978000.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978428khufw1578sanqvr/2g3wy1211978000.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978428khufw1578sanqvr/318oc1211978000.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211978428khufw1578sanqvr/318oc1211978000.ps (open in new window)


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