Home » date » 2009 » May » 29 »

multiplicatief decompositiemodel: stof voor jurk: birgit teugels

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Fri, 29 May 2009 05:45:13 -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/May/29/t1243597552vdvigfsgivqxa5v.htm/, Retrieved Fri, 29 May 2009 13:45:57 +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/May/29/t1243597552vdvigfsgivqxa5v.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 «
20,73 20,73 20,74 20,74 20,75 20,75 20,77 20,78 20,78 20,8 20,84 20,85 20,86 20,86 20,86 20,86 20,9 20,92 20,95 20,95 20,95 20,96 21,1 21,18 21,19 21,19 21,19 21,19 21,19 21,21 21,22 21,22 21,22 21,23 21,41 21,42 21,43 21,44 21,44 21,44 21,48 21,53 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,54 21,57 21,6 21,61 21,6 21,6 21,71 21,75 21,84 21,85 21,92 21,92 21,93 22 22 21,99 22,01 22,01 22,06 22,03 22,05 22,05 22,06 22,06 22,13 22,06 22,25 22,28 22,18
 
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
120.73NANA1.00134157558915NA
220.73NANA1.00112060781802NA
320.74NANA1.00016333418405NA
420.74NANA0.999287742209415NA
520.75NANA1.00000714372987NA
620.75NANA1.00019934203818NA
720.7720.771767784906220.77708333333330.999744162915370.999914894826261
820.7820.765144880636320.78791666666670.9989045662249141.00071538722456
920.7820.756183484978620.79833333333330.9979734025953351.00114744191959
1020.820.780726766897020.80833333333330.9986732927623691.00092745712502
1120.8420.837174504669620.81958333333331.000844933880501.00013559877467
1220.8520.869163776144020.83291666666671.001739896052830.999081718062615
1320.8620.875468497094820.84751.001341575589150.99925901078115
1420.8620.885461547016820.86208333333331.001120607818020.998780896129133
1520.8620.879659805259820.876251.000163334184050.99905842310444
1620.8620.875120934754720.890.9992877422094150.999275648040462
1720.920.907649357532220.90751.000007143729870.999634135937455
1820.9220.936255977488320.93208333333331.000199342038180.99922354897142
1920.9520.954221094638320.95958333333330.999744162915370.999798556356775
2020.9520.964093373409520.98708333333330.9989045662249140.999327737519652
2120.9520.971995233289921.01458333333330.9979734025953350.998951209312933
2220.9621.014166649080221.04208333333330.9986732927623690.997422374630186
2321.121.085717663250021.06791666666671.000844933880501.00067734648534
2421.1821.12878136587121.09208333333331.001739896052831.00242411681214
2521.1921.143744594221421.11541666666671.001341575589151.00218766385361
2621.1921.161603981339921.13791666666671.001120607818021.00134186513863
2721.1921.163872886057121.16041666666671.000163334184051.00123451478298
2821.1921.167828969243521.18291666666670.9992877422094151.0010473927576
2921.1921.207234831007921.20708333333331.000007143729870.999187313615128
3021.2121.234232031470521.231.000199342038180.998858822328275
3121.2221.244563461951621.250.999744162915370.998843776573918
3221.2221.247116333839821.27041666666670.9989045662249140.998723764043374
3321.2221.248101208007921.291250.9979734025953350.998677472037015
3421.2321.28380843812621.31208333333330.9986732927623690.997471860438773
3521.4121.352609645618121.33458333333331.000844933880501.00268774427737
3621.4221.397164179688521.361.001739896052831.00106723583180
3721.4321.415358496599921.38666666666671.001341575589151.00068369172538
3821.4421.437329282076521.41333333333331.001120607818021.00012458258622
3921.4421.443501884906021.441.000163334184050.999836692489648
4021.4421.450960496202821.466250.9992877422094150.999489044035824
4121.4821.48473681339321.48458333333331.000007143729870.999779526580468
4221.5321.499284857110721.4951.000199342038181.00142865881789
4321.5421.499081663427121.50458333333330.999744162915371.00190325973981
4421.5421.489766901385321.51333333333330.9989045662249141.00233753576040
4521.5421.478050912855921.52166666666670.9979734025953351.00288429743441
4621.5421.501435993173821.530.9986732927623691.00179355494389
4721.5421.556114782173821.53791666666671.000844933880500.999252426407234
4821.5421.582068668834921.54458333333331.001739896052830.99805075827158
4921.5421.579328179602621.55041666666671.001341575589150.998177506765951
5021.5421.579988968690621.55583333333331.001120607818020.998146942116208
5121.5421.564354954453321.56083333333331.000163334184050.99887059202537
5221.5421.555052969349721.57041666666670.9992877422094150.999301650087751
5321.5721.586404206338921.586251.000007143729870.99924006767491
5421.621.611807283090021.60751.000199342038180.999453665168522
5521.6121.627382164334621.63291666666670.999744162915370.9991962890283
5621.621.637937745375321.66166666666670.9989045662249140.99824670235113
5721.621.649369680301521.69333333333330.9979734025953350.997719578859315
5821.7121.696593399134421.72541666666670.9986732927623691.00061791271187
5921.7521.777968742517321.75958333333331.000844933880500.998715732268332
6021.8421.832086251224821.79416666666671.001739896052831.00036248248034
6121.8521.855948789859121.82666666666671.001341575589150.999727818274268
6221.9221.884079353315321.85958333333331.001120607818021.00164140543017
6321.9221.897325997792121.893751.000163334184051.00103546899791
6421.9321.90980011783421.92541666666670.9992877422094151.00092195647872
652221.951823483443521.95166666666671.000007143729871.00219464759239
662221.976463293208021.97208333333331.000199342038181.00107099611425
6721.9921.983541022373221.98916666666670.999744162915371.00029380970155
6822.0121.979230138835522.00333333333330.9989045662249141.00139995172579
6922.0121.970384458136322.0150.9979734025953351.00180313375668
7022.0621.99994041181122.02916666666670.9986732927623691.00272998867564
7122.0322.058622342726322.041.000844933880500.998702441962078
7222.0522.091286449328422.05291666666671.001739896052830.998131098004495
7322.05NA22.0754166666667NANA
7422.06NA22.0945833333333NANA
7522.06NANANANA
7622.13NANANANA
7722.06NANANANA
7822.25NANANANA
7922.28NANANANA
8022.18NANANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/1wyv51243597511.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/1wyv51243597511.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/2xuvl1243597511.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/2xuvl1243597511.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/3gs751243597511.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/3gs751243597511.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/4begj1243597511.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/29/t1243597552vdvigfsgivqxa5v/4begj1243597511.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