Home » date » 2009 » Dec » 04 »

workshop 9

*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, 04 Dec 2009 04:49:01 -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/04/t12599274308biy29muglyolfa.htm/, Retrieved Fri, 04 Dec 2009 12:50:36 +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/04/t12599274308biy29muglyolfa.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:
workshop 9
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.6348 0.634 0.62915 0.62168 0.61328 0.6089 0.60857 0.62672 0.62291 0.62393 0.61838 0.62012 0.61659 0.6116 0.61573 0.61407 0.62823 0.64405 0.6387 0.63633 0.63059 0.62994 0.63709 0.64217 0.65711 0.66977 0.68255 0.68902 0.71322 0.70224 0.70045 0.69919 0.69693 0.69763 0.69278 0.70196 0.69215 0.6769 0.67124 0.66532 0.67157 0.66428 0.66576 0.66942 0.6813 0.69144 0.69862 0.695 0.69867 0.68968 0.69233 0.68293 0.68399 0.66895 0.68756 0.68527 0.6776 0.68137 0.67933 0.67922
 
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
10.6348NANA1.00313027278422NA
20.634NANA0.994834781274025NA
30.62915NANA0.99833399575141NA
40.62168NANA0.992684890341518NA
50.61328NANA1.00800671165671NA
60.6089NANA1.00019875869377NA
70.608570.6187050753845650.621111250.9961260166911560.983618890828938
80.626720.6203551774608960.6194191666666671.001511110479951.01025996521083
90.622910.6175540881896660.6179266666666670.9993970506581141.00867278172514
100.623930.618015984429870.6170504166666671.001564811783811.00956935697316
110.618380.6178734302588510.617356251.000837733899751.00081986004955
120.620120.6215336701980930.619443751.003373865985560.997725513088225
130.616590.6241112922539550.622163751.003130272784220.987948796396886
140.61160.620597418739870.6238195833333330.9948347812740250.985502004249165
150.615730.6234995137065850.624540.998333995751410.987538861641773
160.614070.620537665420090.6251104166666670.9926848903415180.989577320152336
170.628230.6311537424395310.6261404166666671.008006711656710.995367622430265
180.644050.6279635384098510.627838751.000198758693771.02561687200961
190.63870.628003496697870.6304458333333330.9961260166911561.01703255373318
200.636330.6355168037846740.6345579166666671.001511110479951.00127958255468
210.630590.6393800869451640.6397658333333330.9993970506581140.986252172808257
220.629940.6466832732551520.6456729166666671.001564811783810.974109005215377
230.637090.6528835682221090.6523370833333331.000837733899750.97580951797406
240.642170.6605239424854040.6583029166666671.003373865985560.972213054963092
250.657110.6653767279087220.6633004166666671.003130272784220.987575868583947
260.669770.6650395900208260.66849250.9948347812740251.00711297500202
270.682550.6727531533319770.6738758333333330.998333995751411.01456231995272
280.689020.6744900892101520.6794604166666670.9926848903415181.02154206714418
290.713220.6900826548085760.684601251.008006711656711.03352836798636
300.702240.6895499434774550.6894129166666671.000198758693771.01840338998296
310.700450.690678085458050.6933641666666670.9961260166911561.01414829100227
320.699190.6961716550057080.695121251.001511110479951.00433563327750
330.696930.6945280654467920.6949470833333330.9993970506581141.00345836931970
340.697630.6945735120492660.6934883333333331.001564811783811.00440052477918
350.692780.6913440942729870.6907654166666671.000837733899751.00207697691918
360.701960.6897676918819970.6874483333333331.003373865985561.01767596288069
370.692150.6865636752118180.684421251.003130272784221.00813664484428
380.67690.6782141041263390.6817354166666670.9948347812740250.998062405192779
390.671240.6787111274241220.679843750.998333995751410.98899218368133
400.665320.6739681024053140.6789345833333330.9926848903415180.987168380262434
410.671570.6843559166779760.678921.008006711656710.981316861056683
420.664280.6790082653103050.6788733333333331.000198758693770.97830915165138
430.665760.6762251270608750.6788550.9961260166911560.984524196688224
440.669420.6806862067562080.6796591666666671.001511110479950.983448751209612
450.68130.680659765707160.6810704166666670.9993970506581141.00094060839952
460.691440.6837511869392710.6826829166666671.001564811783811.01124504528489
470.698620.6845071215032840.6839341666666671.000837733899751.02061757730982
480.6950.6869561546950170.684646251.003373865985561.01170940132060
490.698670.6878957486198860.6857491666666671.003130272784221.01566262242750
500.689680.6837677692928020.6873179166666670.9948347812740251.00864654780864
510.692330.6866782486827170.6878241666666670.998333995751411.00823056697678
520.682930.6822231045059120.6872504166666670.9926848903415181.00103616469366
530.683990.6915199043782790.6860270833333331.008006711656710.989111080779303
540.668950.6847018967441690.6845658333333331.000198758693770.976994518608651
550.68756NANA0.996126016691156NA
560.68527NANA1.00151111047995NA
570.6776NANA0.999397050658114NA
580.68137NANA1.00156481178381NA
590.67933NANA1.00083773389975NA
600.67922NANA1.00337386598556NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/1gc4v1259927339.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/1gc4v1259927339.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/2dz7u1259927339.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/2dz7u1259927339.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/3ge5m1259927339.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/3ge5m1259927339.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/4ml271259927339.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599274308biy29muglyolfa/4ml271259927339.ps (open in new window)


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