Home » date » 2009 » Dec » 02 »

*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: Wed, 02 Dec 2009 12:57:25 -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/02/t1259783985xjn2ie2boh01dhi.htm/, Retrieved Wed, 02 Dec 2009 20:59:56 +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/02/t1259783985xjn2ie2boh01dhi.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 «
17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698 31956 29506 34506 27165 26736 23691 18157 17328 18205 20995 17382 9367
 
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'Gwilym Jenkins' @ 72.249.127.135


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
117409NANA0.783190023431188NA
211514NANA0.563728989535431NA
331514NANA1.26846791210841NA
427071NANA1.19484632820052NA
529462NANA1.41675541593637NA
626105NANA1.21836120137747NA
72239723541.482644925922944.70833333331.026009235023730.951384427982384
82384324926.725179373723125.08333333331.077908555833970.956523563702206
92170519402.887385863923147.95833333330.8382116084045111.11864793978103
101808919838.796361277123099.08333333330.8588564349065990.911799267989237
112076420718.978160535623486.08333333330.88218107150841.00217297586375
122531620936.331407966424023.79166666670.8714832237334051.20918987699856
131770419017.877009803124282.58333333330.7831900234311880.9309135815146
141554813706.600606396124314.16666666670.5637289895354311.13434398845361
152802930671.289850633024179.79166666671.268467912108410.913851361859876
162938328679.398563160324002.58333333331.194846328200521.02453334003118
173643833949.7100320831239631.416755415936371.07329340856123
183203429046.7463418423840.83333333331.218361201377471.10284296984606
192267924415.215009318123796.29166666671.026009235023730.92888799018745
202431925637.830436228623784.79166666671.077908555833970.948559202795686
211800419935.745490423423783.66666666670.8382116084045110.903101416932144
221753720352.392509351223697.08333333330.8588564349065990.861667737193174
232036620495.859864533223233.16666666670.88218107150840.993664092875755
242278219779.110622251422695.91666666670.8714832237334051.15182125400373
251916917585.096127771022453.16666666670.7831900234311881.09007081114146
261380712715.071779926922555.29166666670.5637289895354311.08587668547785
272974328752.890692058122667.41666666671.268467912108411.03443512231678
282559127141.780694557322715.70833333331.194846328200520.942863708464483
292909632212.7678921451227371.416755415936370.903244331484314
302648227515.114016558422583.70833333331.218361201377470.962452853514013
312240523013.472642351822430.08333333331.026009235023730.973560155313893
322704424006.954791251822271.79166666671.077908555833971.12650689082211
331797018637.181081586422234.45833333330.8382116084045110.964201609746358
341873019315.502292625522489.79166666670.8588564349065990.969687441529853
351968420182.832614326322878.33333333330.88218107150840.975284310985553
361978520159.331490406123132.20833333330.8714832237334050.98143135398194
371847918280.536235660323341.1250.7831900234311881.01085656141490
381069813181.040767193823381.8750.5637289895354310.811620280139502
393195629491.826103690923249.95833333331.268467912108411.08355446989431
402950627719.638250033323199.33333333331.194846328200521.06444390557530
413450632697.71146472523079.29166666671.416755415936371.05530321402542
422716528105.257723475623068.08333333331.218361201377470.966545130710892
432673623672.897327778523072.79166666671.026009235023731.12939280856962
442369124761.311128909622971.6251.077908555833970.956774860453169
4518157NANA0.838211608404511NA
4617328NANA0.858856434906599NA
4718205NANA0.8821810715084NA
4820995NANA0.871483223733405NA
4917382NANANANA
509367NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/18h6q1259783844.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/18h6q1259783844.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/2zj241259783844.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/2zj241259783844.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/3h2gp1259783844.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/3h2gp1259783844.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/4ybhn1259783844.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259783985xjn2ie2boh01dhi/4ybhn1259783844.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 1 ; par4 = 1 ;
 
Parameters (R input):
par1 = multiplicative ; par2 = 12 ; par3 = 1 ; par4 = 1 ;
 
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