Home » date » 2010 » Nov » 27 »

*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: Sat, 27 Nov 2010 15:01:19 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5.htm/, Retrieved Sat, 27 Nov 2010 15:59: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/2010/Nov/27/t1290869976pints3z9588s6l5.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
47.54 45.31 46.9 47.16 48.24 52.7 51.72 51.5 52.45 53 48.36 46.63 45.92 45.53 42.17 43.66 45.32 47.43 47.76 49.49 50.69 49.8 52.13 53.94 60.75 59.19 57.58 59.16 64.74 67.04 75.53 78.91 78.4 70.07 66.8 61.02 52.38 42.37 39.83 38.79 37.33 39.4 39.45 43.24 42.33 45.5 43.44 43.88 45.61 45.12 47.56 47.04 51.07 54.72 55.37 55.39 53.13 53.71 54.59 54.61
 
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
147.54NANA0.766981818181818NA
245.31NANA-0.420836363636364NA
346.946.463345454545547.03-0.5666545454545440.436654545454537
447.1648.085163636363648.0620.0231636363636357-0.92516363636365
548.2449.541345454545549.3440.197345454545454-1.30134545454546
652.751.030981818181850.2640.7669818181818181.66901818181817
751.7250.901163636363651.322-0.4208363636363640.81883636363635
851.551.707345454545552.274-0.566654545454544-0.207345454545461
952.4551.429163636363651.4060.02316363636363571.02083636363636
105350.585345454545550.3880.1973454545454542.41465454545454
1148.3650.038981818181849.2720.766981818181818-1.67898181818182
1246.6347.467163636363647.888-0.420836363636364-0.837163636363634
1345.9245.155345454545445.722-0.5666545454545440.764654545454555
1445.5344.805163636363644.7820.02316363636363570.724836363636364
1542.1744.717345454545544.520.197345454545454-2.54734545454545
1643.6645.588981818181844.8220.766981818181818-1.92898181818182
1745.3244.847163636363645.268-0.4208363636363640.472836363636361
1847.4346.165345454545546.732-0.5666545454545441.26465454545455
1947.7648.161163636363648.1380.0231636363636357-0.401163636363634
2049.4949.231345454545549.0340.1973454545454540.25865454545454
2150.6950.740981818181849.9740.766981818181818-0.0509818181818247
2249.850.789163636363651.21-0.420836363636364-0.98916363636365
2352.1352.895345454545553.462-0.566654545454544-0.765345454545454
2453.9455.185163636363655.1620.0231636363636357-1.24516363636364
2560.7556.915345454545556.7180.1973454545454543.83465454545454
2659.1958.890981818181858.1240.7669818181818180.299018181818184
2757.5859.863163636363660.284-0.420836363636364-2.28316363636364
2859.1660.975345454545561.542-0.566654545454544-1.81534545454546
2964.7464.833163636363664.810.0231636363636357-0.0931636363636414
3067.0469.273345454545569.0760.197345454545454-2.23334545454546
3175.5373.690981818181872.9240.7669818181818181.83901818181818
3278.9173.569163636363673.99-0.4208363636363645.34083636363636
3378.473.375345454545573.942-0.5666545454545445.02465454545454
3470.0771.063163636363671.040.0231636363636357-0.993163636363647
3566.865.931345454545565.7340.1973454545454540.868654545454532
3661.0259.294981818181858.5280.7669818181818181.72501818181818
3752.3852.059163636363652.48-0.4208363636363640.32083636363636
3842.3746.311345454545546.878-0.566654545454544-3.94134545454546
3939.8342.163163636363642.140.0231636363636357-2.33316363636364
4038.7939.741345454545539.5440.197345454545454-0.951345454545454
4137.3339.726981818181838.960.766981818181818-2.39698181818182
4239.439.221163636363639.642-0.4208363636363640.178836363636357
4339.4539.783345454545540.35-0.566654545454544-0.333345454545452
4443.2442.007163636363641.9840.02316363636363571.23283636363637
4542.3342.989345454545542.7920.197345454545454-0.659345454545459
4645.544.444981818181843.6780.7669818181818181.05501818181818
4743.4443.731163636363644.152-0.420836363636364-0.291163636363649
4843.8844.143345454545544.71-0.566654545454544-0.263345454545458
4945.6145.145163636363645.1220.02316363636363570.464836363636358
5045.1246.039345454545545.8420.197345454545454-0.919345454545464
5147.5648.046981818181847.280.766981818181818-0.486981818181818
5247.0448.681163636363649.102-0.420836363636364-1.64116363636364
5351.0750.585345454545551.152-0.5666545454545440.484654545454546
5454.7252.741163636363652.7180.02316363636363571.97883636363636
5555.3754.133345454545553.9360.1973454545454541.23665454545454
5655.3955.230981818181854.4640.7669818181818180.159018181818176
5753.1354.017163636363654.438-0.420836363636364-0.887163636363638
5853.7153.719345454545554.286-0.566654545454544-0.00934545454546765
5954.59NANA0.0231636363636357NA
6054.61NANA0.197345454545454NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/1dn6m1290870076.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/1dn6m1290870076.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/26e571290870076.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/26e571290870076.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/36e571290870076.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/36e571290870076.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/4znna1290870076.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/27/t1290869976pints3z9588s6l5/4znna1290870076.ps (open in new window)


 
Parameters (Session):
par1 = additive ; par2 = 5 ;
 
Parameters (R input):
par1 = additive ; par2 = 5 ;
 
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])
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