Home » date » 2009 » Dec » 16 »

*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, 16 Dec 2009 13:36:18 -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/16/t1260995834z49ns9wgp79srex.htm/, Retrieved Wed, 16 Dec 2009 21:37:20 +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/16/t1260995834z49ns9wgp79srex.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 «
519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516
 
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
1519NANA1.00038941125041NA
2517NANA0.9919493997656NA
3510NANA0.974412888622656NA
4509NANA0.963273968430398NA
5501NANA0.946208433180536NA
6507NANA0.949311983527773NA
7569563.701301874927539.8751.044132997221441.00939983304535
8580577.615334963959543.51.062769705545461.0041284655924
9578575.676085573907547.2083333333331.052023608754571.00403684378130
10565564.319985769068550.5416666666671.025026841630031.00120501532478
11547549.975026006866553.50.993631483300570.9945906161804
12555554.757753635811556.50.996869278770551.00043667053340
13562559.259363781113559.0416666666671.000389411250411.00490047444241
14561556.855594293413561.3750.99194939976561.00744251426951
15555549.690670794256564.1250.9744128886226561.00965875807583
16544546.657977084251567.50.9632739684303980.99513776950914
17537540.639843508528571.3750.9462084331805360.993267526335263
18543545.8543905284695750.9493119835277730.994770783970968
19594603.378355769341577.8751.044132997221440.98445692378643
20611616.672121642755580.251.062769705545460.990802046267885
21613612.935255050631582.6251.052023608754571.00010563097625
22611599.683411805304585.0416666666671.025026841630031.01887093751789
23594583.758496439085587.50.993631483300571.01754407622910
24595587.98672959483589.8333333333330.996869278770551.01192759981165
25591592.272214352377592.0416666666671.000389411250410.99785197697689
26589589.135281010786593.9166666666670.99194939976560.999770373604932
27584580.059872489662595.2916666666670.9744128886226561.00679262210197
28573574.071148769166595.9583333333330.9632739684303980.998134118442526
29567563.979651526982596.0416666666670.9462084331805361.00535542100649
30569565.948160846474596.1666666666670.9493119835277731.00539243585307
31621622.651310676387596.3333333333331.044132997221440.997347936721448
32629633.897847286804596.4583333333331.062769705545460.992273443887264
33628627.356745353975596.3333333333331.052023608754571.00102534108510
34612611.129544870173596.2083333333331.025026841630031.00142433815732
35595592.70117978879596.50.993631483300571.00387854839774
36597595.047886986121596.9166666666670.996869278770551.00328059817802
37593597.274161408629597.0416666666671.000389411250410.992843886970519
38590592.069797985092596.8750.99194939976560.996504131789637
39580581.156086989362596.4166666666670.9744128886226560.99801071172574
40574573.22828404679595.0833333333330.9632739684303981.00134626286715
41573560.98332482191592.8750.9462084331805361.02142073506713
42573560.0940702813865900.9493119835277731.02304243234021
43620612.9060693689875871.044132997221441.01157425417294
44626620.613225967486583.9583333333331.062769705545461.00867976028728
45620610.436698979839580.251.052023608754571.01566632713292
46588590.671717489307576.251.025026841630030.995476814937638
47566568.025997953493571.6666666666670.993631483300570.996433265447722
48557564.2280117841325660.996869278770550.98718955522737
49561560.426484760905560.2083333333331.000389411250411.00102335498890
50549550.490585644918554.9583333333330.99194939976560.997292259515807
51532535.115078001942549.1666666666670.9744128886226560.99417867645671
52526523.418992595868543.3750.9632739684303981.00493105416625
53511509.533241267718538.50.9462084331805361.00287863207635
54499507.288591197653534.3750.9493119835277730.983660994271358
55555554.173588275281530.751.044132997221441.00149125065179
56565560.301045177781527.2083333333331.062769705545461.00838648234313
57542551.1288680363523.8751.052023608754570.983436055402384
58527533.78272777884520.751.025026841630030.98729309244032
59510514.204292608045517.50.993631483300570.991823692122987
60514513.263069906987514.8750.996869278770551.00143577462752
61517513.074719295053512.8751.000389411250411.00765050499923
62508506.348837355348510.4583333333330.99194939976561.00326091919807
63493495.164149568413508.1666666666670.9744128886226560.995629430017704
64490487.69758293324506.2916666666670.9632739684303981.00472099339290
65469477.914109458935505.0833333333330.9462084331805360.98134788389272
66478479.244333017604504.8333333333330.9493119835277730.997403551942349
67528NANA1.04413299722144NA
68534NANA1.06276970554546NA
69518NANA1.05202360875457NA
70506NANA1.02502684163003NA
71502NANA0.99363148330057NA
72516NANA0.99686927877055NA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260995834z49ns9wgp79srex/12ark1260995776.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260995834z49ns9wgp79srex/12ark1260995776.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260995834z49ns9wgp79srex/2v22f1260995776.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260995834z49ns9wgp79srex/2v22f1260995776.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260995834z49ns9wgp79srex/3rp781260995776.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260995834z49ns9wgp79srex/3rp781260995776.ps (open in new window)


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