Home » date » 2009 » Jun » 04 »

MULTIPLICATIEF MODEL - YANNICK DE ROEY

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Thu, 04 Jun 2009 02:29:36 -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/04/t1244104302i8x3vki45c7qlnc.htm/, Retrieved Thu, 04 Jun 2009 10:31: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/04/t1244104302i8x3vki45c7qlnc.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 «
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 528 533 536
 
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
1509NANA0.964282792278105NA
2501NANA0.947199384523121NA
3507NANA0.950306185176819NA
4569NANA1.04339036178599NA
5580NANA1.06115357635289NA
6578NANA1.04512323603582NA
7565564.910990486354550.5416666666671.026100338429771.00015756378464
8547550.551007441081553.50.9946721001645550.993550084564215
9555555.338743956228556.50.9979132865341030.999390022828562
10562559.84506857718559.0416666666671.001437105601281.0038491567467
11561557.438781654084561.3750.9929882550061631.00638853711496
12555550.266354427088564.1250.975433378111391.00860246230726
13544547.230484617824567.50.9642827922781050.994096665466142
14537541.206048331898571.3750.9471993845231210.992228378923587
15543546.426056476675750.9503061851768190.993730063864887
16594602.94920531708577.8751.043390361785990.985157613214907
17611615.734362678762580.251.061153576352890.992311030590911
18613608.914925395372582.6251.045123236035821.00670877725977
19611600.311452162181585.0416666666671.026100338429771.01780500405135
20594584.369858846676587.50.9946721001645551.01647953091272
21595588.602520174032589.8333333333330.9979132865341031.01086893040158
22591592.892493062022592.0416666666671.001437105601280.996808033354837
23589589.75227445241593.9166666666670.9929882550061630.998724422973852
24584580.667361378227595.2916666666670.975433378111391.00573932485866
25573574.672365748072595.9583333333330.9642827922781050.997089879646648
26567564.570299816802596.0416666666670.9471993845231211.00430362734984
27569566.54087072958596.1666666666670.9503061851768191.00434060347183
28621622.208452411714596.3333333333331.043390361785990.99805780135736
29629632.933893562148596.4583333333331.061153576352890.993784669138181
30628623.241823089363596.3333333333331.045123236035821.00763455970758
31612611.76957260798596.2083333333331.026100338429771.00037665716364
32595593.321907748157596.50.9946721001645551.00282829983173
33597595.671072620315596.9166666666670.9979132865341031.00223097518206
34593597.899678590028597.0416666666671.001437105601280.991805182766476
35590592.689864706803596.8750.9929882550061630.995461598270904
36580581.764723928602596.4166666666670.975433378111390.996966602036842
37574573.828618304829595.0833333333330.9642827922781051.00029866355512
38573561.570835099145592.8750.9471993845231211.02035213402569
39573560.6806492543235900.9503061851768191.02197213469390
40620612.4701423683785871.043390361785991.01229424442227
41626619.669473857737583.9583333333331.061153576352891.01021597223896
42620606.432757709787580.251.045123236035821.02237221211705
43588591.290320020153576.251.026100338429770.99443535618841
44566568.620883927404571.6666666666670.9946721001645550.995390806068709
45557564.8189201783035660.9979132865341030.98615676653354
46561561.013411867048560.2083333333331.001437105601280.999976093500148
47549551.067107017795554.9583333333330.9929882550061630.996248901465047
48532535.675496812839549.1666666666670.975433378111390.993138575808102
49526523.967162254115543.3750.9642827922781051.00387970447831
50511510.066868565701538.50.9471993845231211.00182942961366
51499507.819867703862534.3750.9503061851768190.982631897125763
52555553.779434517915530.751.043390361785991.00220406430070
53565559.449008399711527.2083333333331.061153576352891.00992224763463
54542547.513935278267523.8751.045123236035820.989929141665654
55527534.341751237301520.751.026100338429770.986260195426802
56510514.742811835157517.50.9946721001645550.990786055237473
57514513.800603404246514.8750.9979132865341031.0003880816691
58517513.612055535254512.8751.001437105601281.00659631024668
59508506.879129670021510.4583333333330.9929882550061631.00221131679008
60493495.682728310272508.1666666666670.975433378111390.994587811603973
61490488.208342040469506.2916666666670.9642827922781051.00366986346862
62469478.41462246622505.0833333333330.9471993845231210.98032120670207
63478479.746239150097504.8333333333330.9503061851768190.99636007745847
64528527.303404087596505.3751.043390361785991.00132105331960
65534537.872219013869506.8751.061153576352890.992800857012158
66518532.70802276776509.7083333333331.045123236035820.972390085864781
67506NANA1.02610033842977NA
68502NANA0.994672100164555NA
69516NANA0.997913286534103NA
70528NANA1.00143710560128NA
71533NANA0.992988255006163NA
72536NANA0.97543337811139NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/1q4y21244104171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/1q4y21244104171.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/2djoq1244104171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/2djoq1244104171.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/32kvj1244104171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/32kvj1244104171.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/4ylgj1244104171.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/04/t1244104302i8x3vki45c7qlnc/4ylgj1244104171.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