Home » date » 2009 » Dec » 07 »

Ad hoc 1

*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: Mon, 07 Dec 2009 13:37:22 -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/07/t1260218288xffa1a4knb1gvev.htm/, Retrieved Mon, 07 Dec 2009 21:38:13 +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/07/t1260218288xffa1a4knb1gvev.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 «
97.4 97 105.4 102.7 98.1 104.5 87.4 89.9 109.8 111.7 98.6 96.9 95.1 97 112.7 102.9 97.4 111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3
 
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
197.4NANA0.941348969591916NA
297NANA0.95620732762372NA
3105.4NANA1.08173362797653NA
4102.7NANA0.99502820213238NA
598.1NANA0.988058884194956NA
6104.5NANA1.09785548270142NA
787.481.638065754525499.85416666666670.817572951432761.0705790147307
889.993.939424260681999.75833333333330.941669944973840.956999691104424
9109.8109.845183044451100.06251.097765726865220.999588666128105
10111.7106.968163267660100.3751.065685312753771.04423593513988
1198.6104.451133531461100.3541666666671.040825079823570.943982096377164
1296.998.222801193074100.61250.976248489929920.98653264642215
1395.194.9821110318244100.90.9413489695919161.00124117022558
149796.7562289639252101.18750.956207327623721.00251943506568
15112.7109.962730507264101.6541666666671.081733627976531.02489270210106
16102.9101.268995272023101.7750.995028202132381.01610566712542
1797.4100.720252507623101.93750.9880588841949560.967034906833936
18111.4112.370083052335102.3541666666671.097855482701420.991367070077868
1987.483.8250733996081102.5291666666670.817572951432761.04264746161748
2096.896.485856736882102.46250.941669944973841.00325584778684
21114.1112.063584617491102.0833333333331.097765726865221.01817196361744
22110.3108.429040217226101.7458333333331.065685312753771.01725515396083
23103.9105.925635727878101.7708333333331.040825079823570.980876813115553
24101.699.4837888259002101.9041666666670.976248489929921.02127191976779
2594.695.7704907938576101.73750.9413489695919160.987778168576195
2695.996.9793440070373101.4208333333330.956207327623720.98887037215926
27104.7109.620181525071101.33751.081733627976530.95511609763257
28102.8100.613935038953101.1166666666670.995028202132381.02172725835841
2998.199.9298054002673101.13750.9880588841949560.98168909272926
30113.9111.290525161012101.3708333333331.097855482701421.02344741239394
3180.983.0517856497112101.5833333333330.817572951432760.974091036900918
3295.796.0189453891658101.9666666666670.941669944973840.996678307724865
33113.2112.649059671819102.6166666666671.097765726865221.00489076721800
34105.9109.743385436289102.9791666666671.065685312753770.964978431993783
35108.8107.603966169094103.3833333333331.040825079823571.01111514634160
36102.3101.43628580576103.9041666666670.976248489929921.00851484444032
379998.014039171385104.1208333333330.9413489695919161.01005938370615
38100.799.9316341310756104.5083333333330.956207327623721.00768891528299
39115.5113.338640871241104.7751.081733627976531.01906992277431
40100.7104.759885881171105.2833333333330.995028202132380.961245797024102
41109.9104.631318924228105.8958333333330.9880588841949561.05035472294473
42114.6116.432148338330106.0541666666671.097855482701420.984264240036125
4385.486.9352571690169106.3333333333330.817572951432760.982340223989537
44100.5100.586044622289106.8166666666670.941669944973840.999144566996227
45114.8117.621023609746107.1458333333331.097765726865220.976015991672493
46116.5114.57005183197107.5083333333331.065685312753771.01684513655332
47112.9112.105534639331107.7083333333331.040825079823571.00708676305078
48102105.231451810363107.7916666666670.976248489929920.969291958299825
49106NA108.195833333333NANA
50105.3NA108.645833333333NANA
51118.8NA108.704166666667NANA
52106.1NA108.854166666667NANA
53109.3NA109.116666666667NANA
54117.2NANANANA
5592.5NANANANA
56104.2NANANANA
57112.5NANANANA
58122.4NANANANA
59113.3NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/1ncps1260218240.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/1ncps1260218240.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/2czce1260218240.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/2czce1260218240.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/3946x1260218240.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/3946x1260218240.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/4gdjh1260218240.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260218288xffa1a4knb1gvev/4gdjh1260218240.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