Home » date » 2009 » Jun » 01 »

Kim Van Assche Eigen Reeks opdracht 9

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Mon, 01 Jun 2009 11:21:58 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z.htm/, Retrieved Mon, 01 Jun 2009 19:22:42 +0200
 
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/Jun/01/t1243876962ae6ui9yza0u773z.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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
1519NANA-0.0666666666666984NA
2517NANA-4.74166666666671NA
3510NANA-14.4583333333333NA
4509NANA-20.8666666666667NA
5501NANA-29.9999999999999NA
6507NANA-28.3000000000000NA
7569564.683333333333539.87524.80833333333334.31666666666672
8580578.8543.535.31.20000000000005
9578576.725547.20833333333329.51666666666661.27500000000009
10565564.758333333333550.54166666666714.21666666666670.241666666666674
11547549.941666666667553.5-3.55833333333335-2.94166666666661
12555554.65556.5-1.849999999999980.350000000000136
13562558.975559.041666666667-0.06666666666669843.02500000000009
14561556.633333333333561.375-4.741666666666714.36666666666679
15555549.666666666667564.125-14.45833333333335.33333333333326
16544546.633333333333567.5-20.8666666666667-2.63333333333321
17537541.375571.375-29.9999999999999-4.37499999999989
18543546.7575-28.3000000000000-3.69999999999993
19594602.683333333333577.87524.8083333333333-8.68333333333317
20611615.55580.2535.3-4.54999999999995
21613612.141666666667582.62529.51666666666660.858333333333235
22611599.258333333333585.04166666666714.216666666666711.7416666666667
23594583.941666666667587.5-3.5583333333333510.0583333333334
24595587.983333333333589.833333333333-1.849999999999987.01666666666677
25591591.975592.041666666667-0.0666666666666984-0.97499999999991
26589589.175593.916666666667-4.74166666666671-0.175000000000068
27584580.833333333333595.291666666667-14.45833333333333.16666666666674
28573575.091666666667595.958333333333-20.8666666666667-2.09166666666670
29567566.041666666667596.041666666667-29.99999999999990.958333333333371
30569567.866666666667596.166666666667-28.30000000000001.13333333333333
31621621.141666666667596.33333333333324.8083333333333-0.141666666666652
32629631.758333333333596.45833333333335.3-2.75833333333321
33628625.85596.33333333333329.51666666666662.14999999999998
34612610.425596.20833333333314.21666666666671.57500000000005
35595592.941666666666596.5-3.558333333333352.05833333333351
36597595.066666666667596.916666666667-1.849999999999981.93333333333339
37593596.975597.041666666667-0.0666666666666984-3.97499999999991
38590592.133333333333596.875-4.74166666666671-2.13333333333333
39580581.958333333333596.416666666667-14.4583333333333-1.95833333333337
40574574.216666666667595.083333333333-20.8666666666667-0.216666666666697
41573562.875592.875-29.999999999999910.1250000000001
42573561.7590-28.300000000000011.3000000000001
43620611.80833333333358724.80833333333338.19166666666672
44626619.258333333333583.95833333333335.36.74166666666667
45620609.766666666667580.2529.516666666666610.2333333333333
46588590.466666666667576.2514.2166666666667-2.46666666666670
47566568.108333333333571.666666666667-3.55833333333335-2.10833333333335
48557564.15566-1.84999999999998-7.14999999999998
49561560.141666666667560.208333333333-0.06666666666669840.858333333333348
50549550.216666666667554.958333333333-4.74166666666671-1.21666666666670
51532534.708333333333549.166666666667-14.4583333333333-2.70833333333337
52526522.508333333333543.375-20.86666666666673.49166666666679
53511508.5538.5-29.99999999999992.50000000000011
54499506.075534.375-28.3000000000000-7.07499999999993
55555555.558333333333530.7524.8083333333333-0.558333333333167
56565562.508333333333527.20833333333335.32.49166666666679
57542553.391666666667523.87529.5166666666666-11.3916666666665
58527534.966666666667520.7514.2166666666667-7.96666666666658
59510513.941666666666517.5-3.55833333333335-3.94166666666649
60514513.025514.875-1.849999999999980.975000000000136
61517512.808333333333512.875-0.06666666666669844.19166666666672
62508505.716666666667510.458333333333-4.741666666666712.28333333333336
63493493.708333333333508.166666666667-14.4583333333333-0.708333333333258
64490485.425506.291666666667-20.86666666666674.57500000000016
65469475.083333333333505.083333333333-29.9999999999999-6.08333333333326
66478476.533333333333504.833333333333-28.30000000000001.46666666666670
67528NANA24.8083333333333NA
68534NANA35.3NA
69518NANA29.5166666666666NA
70506NANA14.2166666666667NA
71502NANA-3.55833333333335NA
72516NANA-1.84999999999998NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/19f701243876914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/19f701243876914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/2mvn31243876914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/2mvn31243876914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/3o4kl1243876914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/3o4kl1243876914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/4i2qb1243876914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243876962ae6ui9yza0u773z/4i2qb1243876914.ps (open in new window)


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