Home » date » 2009 » Jun » 07 »

huishoudbroodprijzen - decompositiemodel - Joris Hoefnagels

*Unverified author*
R Software Module: rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Sun, 07 Jun 2009 13:16:51 -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/07/t1244402273lu2kwp8b1oc8evn.htm/, Retrieved Sun, 07 Jun 2009 21:17:53 +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/07/t1244402273lu2kwp8b1oc8evn.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 «
40,04 40,04 40,03 40,03 41,63 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,03 42,38 42,06 42,06 42,05 42,05 42,05 42,05 44,36 44,48 44,49 44,49 44,49 44,49 44,49 44,48 44,48 44,48 44,48 44,48 44,48 44,49 44,49 44,49 44,49 44,49 44,49 44,49 44,49 45,5 45,94 45,95 45,96 45,96 45,96 45,96 45,96 45,96 45,96 45,96 45,97 46,06 47,9 47,93 47,94 47,94 47,94 47,94 47,94 47,94 47,94 47,94
 
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
140.04NANA0.991137210306149NA
240.04NANA0.993811082754815NA
340.03NANA1.00140089478749NA
440.03NANA0.999383160146058NA
541.63NANA1.00794514978150NA
642.03NANA1.00633641433178NA
742.0341.669046754063141.41458333333331.006144295082761.00866238308900
842.0341.739581440574041.58041666666671.003827878281821.00695786947072
942.0341.795484810549241.74666666666671.001169390223951.00561101732672
1042.0341.907170922188241.91333333333330.999852972535111.00293097995185
1142.0341.831021051349842.01333333333330.99566060896581.00475673181407
1242.0341.749699526000542.030.9933309428027711.00671383212770
1342.0341.657496949167442.030.9911372103061491.00894204112376
1442.0341.769879808184942.030.9938110827548151.00622745847031
1542.0342.088879607918042.031.001400894787490.9986010649733
1642.0342.018648558690942.04458333333330.9993831601460581.00027015246083
1742.0342.394592976955542.06041666666671.007945149781500.991400012328137
1842.0342.329444734669942.06291666666671.006336414331780.992925852523064
1942.0342.323459772656542.0651.006144295082760.99306626220463
2042.0342.227692746388542.06666666666671.003827878281820.99531840994544
2142.0342.117527631071342.06833333333331.001169390223950.997921824095708
2242.3842.063814554552142.070.999852972535111.00751680390369
2342.0641.984933587152542.16791666666670.99566060896581.00178793692008
2442.0642.084534831303642.36708333333330.9933309428027710.999417010752242
2542.0542.194362938083342.57166666666670.9911372103061490.996578620269843
2642.0542.511925416641842.77666666666670.9938110827548150.989134215585047
2742.0543.041879459457542.98166666666671.001400894787490.976955479827693
2842.0543.145453071755643.17208333333330.9993831601460580.974610231350827
2944.3643.705761625962943.361251.007945149781501.01496915623245
3044.4843.839368663006943.56333333333331.006336414331781.01461315152409
3144.4944.034324301086843.76541666666671.006144295082761.01034819328208
3244.4944.136220499971843.96791666666671.003827878281821.00801562743753
3344.4944.222069120104544.17041666666671.001169390223951.00605875946618
3444.4944.366392629219444.37291666666670.999852972535111.00278605862355
3544.4944.286154169624744.47916666666670.99566060896581.00460292464310
3644.4844.187913102688444.48458333333330.9933309428027711.00661010843922
3744.4844.090738800469044.4850.9911372103061491.00882863862392
3844.4844.20968601634844.4850.9938110827548151.00611436108259
3944.4844.547318804621344.4851.001400894787490.998488824772674
4044.4844.457559879097444.4850.9993831601460581.00050475376884
4144.4844.838439988029844.4851.007945149781500.992005966574093
4244.4944.767294698388644.48541666666671.006336414331780.993805864297656
4344.4944.759586647125644.486251.006144295082760.99397700766875
4444.4944.699618896657444.52916666666671.003827878281820.995310499242912
4544.4944.684692809170544.63251.001169390223950.995642964135348
4644.4944.748003180403644.75458333333330.999852972535110.994234308526272
4744.4944.682758978862744.87750.99566060896580.99568605468266
4844.4944.700306314017545.00041666666670.9933309428027710.995295193000689
4944.4944.723001745876845.12291666666670.9911372103061490.994790113883661
5045.544.965396527192845.24541666666670.9938110827548151.01188921957986
5145.9445.431472344644145.36791666666671.001400894787491.01119329022617
5245.9545.462356364694245.49041666666670.9993831601460581.01072631676620
5345.9645.975318121554245.61291666666671.007945149781500.999666818584839
5445.9646.025215216303445.73541666666671.006336414331780.998583054614805
5545.9646.140100465337145.85833333333331.006144295082760.996096660745844
5645.9646.119198821194345.94333333333331.003827878281820.996548100893696
5745.9646.102181804162646.04833333333331.001169390223950.996915941966336
5845.9646.205705493278746.21250.999852972535110.994682355984923
5945.9646.176249892311446.37750.99566060896580.995316858930386
6045.9646.23210540539846.54250.9933309428027710.994114362670444
6145.9746.293541250374546.70750.9911372103061490.993011093089107
6246.0646.582409976425146.87250.9938110827548150.98878525227249
6347.947.103394588566447.03751.001400894787491.01691184719046
6447.9347.173383616794347.20250.9993831601460581.01603905264358
6547.9447.74384188227547.36751.007945149781501.00410855327078
6647.9447.833685614225447.53251.006336414331781.00222258403068
6747.94NANA1.00614429508276NA
6847.94NANA1.00382787828182NA
6947.94NANA1.00116939022395NA
7047.94NANA0.99985297253511NA
7147.94NANA0.9956606089658NA
7247.94NANA0.993330942802771NA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244402273lu2kwp8b1oc8evn/194vi1244402207.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244402273lu2kwp8b1oc8evn/194vi1244402207.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244402273lu2kwp8b1oc8evn/29m3n1244402207.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244402273lu2kwp8b1oc8evn/29m3n1244402207.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244402273lu2kwp8b1oc8evn/39ifo1244402207.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t1244402273lu2kwp8b1oc8evn/39ifo1244402207.ps (open in new window)


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