Home » date » 2009 » Dec » 11 »

WS9

*The author of this computation has been verified*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 11 Dec 2009 05:41:48 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48.htm/, Retrieved Fri, 11 Dec 2009 13:42:41 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7.55 7.55 7.59 7.59 7.59 7.57 7.57 7.59 7.6 7.64 7.64 7.76 7.76 7.76 7.77 7.83 7.94 7.94 7.94 8.09 8.18 8.26 8.28 8.28 8.28 8.29 8.3 8.3 8.31 8.33 8.33 8.34 8.48 8.59 8.67 8.67 8.67 8.71 8.72 8.72 8.72 8.74 8.74 8.74 8.74 8.79 8.85 8.86 8.87 8.92 8.96 8.97 8.99 8.98 8.98 9.01 9.01 9.03 9.05 9.05
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
17.55NANA1.00224969286558NA
27.55NANA1.00156200307055NA
37.59NANA1.00004047069589NA
47.59NANA0.998713051372467NA
57.59NANA0.999531601637073NA
67.57NANA0.997047943831932NA
77.577.55742579705677.612083333333330.9928196350613651.00166382089364
87.597.591702411659227.629583333333330.9950349947016610.999775753636417
97.67.636788818462397.645833333333330.9988170661749170.995182684851328
107.647.692167946364867.663333333333331.003762672426910.993218043764956
117.647.725579199951527.687916666666671.004898925797170.988922616966756
127.767.760534557673947.717916666666671.005521942364490.999931118446807
137.767.766182307592167.748751.002249692865580.99920394508559
147.767.797160193904227.7851.001562003070550.995234137432078
157.777.830316885548787.831.000040470695890.992297005800608
167.837.869858844815047.880.9987130513724670.99493525289322
177.947.928784429986087.93250.9995316016370731.00141453839652
187.947.957273465065347.980833333333330.9970479438319320.997829223145192
197.947.966550221671578.024166666666670.9928196350613650.996667287479173
208.098.027859417670118.067916666666670.9950349947016611.00774061665718
218.188.102487275566448.112083333333330.9988170661749171.00956653454641
228.268.184429890300888.153751.003762672426911.00923339935854
238.288.228866078621618.188751.004898925797171.00621396932334
248.288.26580933371218.220416666666671.005521942364491.00171679090516
258.288.27148319441198.252916666666661.002249692865581.00102965881547
268.298.292516067922868.279583333333331.001562003070550.999696585704236
278.38.302836007952598.30251.000040470695890.999658429005478
288.38.318031326618438.328750.9987130513724670.99783226031372
298.318.354834775183898.358750.9995316016370730.99463367303001
308.338.36647855867978.391250.9970479438319320.9956399148789
318.338.363264400848178.423750.9928196350613650.996022557789181
328.348.41550846768938.45750.9950349947016610.991027462217024
338.488.482453934490488.49250.9988170661749170.999710704648745
348.598.559586189120448.52751.003762672426911.00355318705923
358.678.604028344252558.562083333333331.004898925797171.00766753119677
368.678.643717997050768.596251.005521942364491.00304059005144
378.678.649832453468658.630416666666671.002249692865581.00233155343064
388.718.677700121603748.664166666666671.001562003070551.00372217038428
398.728.692018424465078.691666666666671.000040470695891.00321922644068
408.728.699622938330338.710833333333330.9987130513724671.00234229251246
418.728.72257911028628.726666666666670.9995316016370730.999704317925515
428.748.71627621230748.742083333333330.9970479438319321.00272178016331
438.748.695445303745788.758333333333330.9928196350613651.00512391196746
448.748.731846676421548.775416666666670.9950349947016611.00093374561884
458.748.783763749453258.794166666666670.9988170661749170.99501765408297
468.798.847749722996338.814583333333331.003762672426910.993472947946727
478.858.879538133075288.836251.004898925797170.996673460642592
488.868.906410604493478.85751.005521942364490.994789078726051
498.878.897471648414198.87751.002249692865580.996912420797757
508.928.912649874824048.898751.001562003070551.00082468460886
518.968.921611049195678.921251.000040470695891.00430291688269
528.978.930991461898298.94250.9987130513724671.00436777241005
538.998.956636093669548.960833333333330.9995316016370731.00372504877741
548.988.95058247910798.977083333333330.9970479438319321.00328665994205
558.98NANA0.992819635061365NA
569.01NANA0.995034994701661NA
579.01NANA0.998817066174917NA
589.03NANA1.00376267242691NA
599.05NANA1.00489892579717NA
609.05NANA1.00552194236449NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/1yyrd1260535305.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/1yyrd1260535305.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/2ed3b1260535305.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/2ed3b1260535305.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/3deo51260535305.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/3deo51260535305.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/4ceaz1260535305.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260535356p92grqkago3tz48/4ceaz1260535305.ps (open in new window)


 
Parameters (Session):
par1 = 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