Home » date » 2011 » May » 17 »

Decompositiemodel-Consumptieprijzen Kabeljauw-Toon Baeten

*Unverified author*
R Software Module: /rwasp_decompose.wasp (opens new window with default values)
Title produced by software: Classical Decomposition
Date of computation: Tue, 17 May 2011 14:00:14 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62.htm/, Retrieved Tue, 17 May 2011 16:03:35 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12,32 12,34 12,36 12,54 12,77 12,79 12,96 12,96 13 13,19 13,25 13,61 13,8 13,83 14,04 14,16 14,2 14,27 14,31 14,69 14,9 14,92 15,01 15,09 15,14 15,24 15,33 15,36 15,44 15,5 15,58 15,65 15,72 15,82 15,87 16,07 16,18 16,19 16,39 16,54 16,61 16,62 16,66 16,71 16,72 16,79 16,82 16,83 16,91 16,97 17,02 17,03 17,04 17,07 17,11 17,12 17,14 17,18 17,24 17,26 17,26 17,29 17,36 17,44 17,48 17,48 17,52 17,54 17,58 17,64 17,69 17,69 17,76 17,79 17,82 17,89 17,95 18 18,03 18,06 18,08 18,13 18,16 18,18 18,18 18,27 18,31 18,35 18,45 18,5
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Classical Decomposition by Moving Averages
tObservationsFitTrendSeasonalRandom
112.32NANA1.00113412263928NA
212.34NANA0.999267247570566NA
312.36NANA1.00166550197341NA
412.54NANA1.00195798670682NA
512.77NANA1.00065377558901NA
612.79NANA0.998793776768194NA
712.9612.872266679233712.90250.9976567858348111.00681568545405
812.9613.026039428613613.026250.9999838348422320.99493019893149
91313.160834043479413.15833333333331.000190047636180.987779342635274
1013.1913.294896747117513.29583333333330.9999295579154480.992109999113741
1113.2513.415775865315113.42291666666670.9994680141783680.987643214452945
1213.6113.534676923885313.54416666666670.9992993483456811.00556519202773
1313.813.677577811341313.66208333333331.001134122639281.00895057519301
1413.8313.780311705351313.79041666666670.9992672475705661.00360574533517
1514.0413.964886540012713.94166666666671.001665501973411.00537873757671
1614.1614.120510410160414.09291666666671.001957986706821.00279661206944
1714.214.247642008094814.23833333333331.000653775589010.996656147868696
1814.2714.355995884748214.37333333333330.9987937767681940.994009758331045
1914.3114.456878207401314.49083333333330.9976567858348110.989840254217119
2014.6914.60518056780214.60541666666670.9999838348422321.00580748945925
2114.914.720713771938614.71791666666671.000190047636181.01217918036034
2214.9214.820622597570114.82166666666670.9999295579154481.0067053459985
2315.0114.915394331588514.92333333333330.9994680141783681.0063428204651
2415.0915.015721833079315.026250.9992993483456811.00494669305588
2515.1415.1475764147515.13041666666671.001134122639280.99949982660311
2615.2415.212178398849215.22333333333330.9992672475705661.00182890316043
2715.3315.322978016438315.29751.001665501973411.00045826493741
2815.3615.399259290694915.36916666666671.001957986706820.997450572787052
2915.4415.452595929533215.44251.000653775589010.999184866439873
3015.515.500447087295115.51916666666670.9987937767681940.999971156490355
3115.5815.566771381642515.60333333333330.9976567858348111.00084979846066
3215.6515.68599642929415.686250.9999838348422320.997705186950908
3315.7215.772997051222515.771.000190047636180.99664001387622
3415.8215.862215887065415.86333333333330.9999295579154480.99733858829271
3515.8715.952758841304515.961250.9994680141783680.994812255226337
3616.0716.045416536603816.05666666666670.9992993483456811.00153211749537
3716.1816.166647523753216.14833333333331.001134122639281.00082592734376
3816.1916.225601932427116.23750.9992672475705660.997805817462099
3916.3916.350519877212716.32333333333331.001665501973411.00241460963222
4016.5416.437538254419916.40541666666671.001957986706821.00623339967301
4116.6116.49619442965816.48541666666671.000653775589011.00689889845972
4216.6216.536695630692116.55666666666670.9987937767681941.00503754626489
4316.6616.579808709592316.618750.9976567858348111.00483668369234
4416.7116.681397004893216.68166666666670.9999838348422321.00171466425135
4516.7216.743598143282816.74041666666671.000190047636180.998590616958143
4616.7916.785900816189816.78708333333330.9999295579154481.00024420398137
4716.8216.81646578355716.82541666666670.9994680141783681.0002101640433
4816.8316.850268886750616.86208333333330.9992993483456810.998797117904361
4916.9116.91874953338616.89958333333331.001134122639280.999482849877958
5016.9716.923007198960716.93541666666670.9992672475705661.00277685877497
5117.0216.998263568488816.971.001665501973411.00127874423311
5217.0317.037043116466117.003751.001957986706820.9995865998332
5317.0417.048638701597717.03751.000653775589010.999493290828147
5417.0717.052322917948617.07291666666670.9987937767681941.00103663777284
5517.1117.065335012031917.10541666666670.9976567858348111.00261729335736
5617.1217.133056370296917.13333333333330.9999838348422320.99923794272226
5717.1417.164094709143217.16083333333331.000190047636180.99859621439106
5817.1817.190872287145517.19208333333330.9999295579154480.999367554655521
5917.2417.218335214257817.22750.9994680141783681.00125823928229
6017.2617.250821375545817.26291666666670.9992993483456811.00053206883628
6117.2617.316700347135117.29708333333331.001134122639280.996725684108492
6217.2917.318966845810517.33166666666670.9992672475705660.998327449548901
6317.3617.396425605523317.36751.001665501973410.997906144264962
6417.4417.439078758632217.4051.001957986706821.00005282626339
6517.4817.454320419784417.44291666666671.000653775589011.00147124491805
6617.4817.458499053834417.47958333333330.9987937767681941.00123154608534
6717.5217.477284126516217.51833333333330.9976567858348111.00244407959352
6817.5417.559716139829617.560.9999838348422320.998877194843437
6917.5817.603344838396717.61.000190047636180.998673840760886
7017.6417.636674215049517.63791666666670.9999295579154481.00018857211456
7117.6917.666846485620417.676250.9994680141783681.00131056294616
7217.6917.705086204314617.71750.9992993483456810.999147916923956
7317.7617.780559157291317.76041666666671.001134122639280.998843728304074
7417.7917.790287897581317.80333333333330.9992672475705660.99998381714883
7517.8217.875555603967217.84583333333331.001665501973410.996892090785984
7617.8917.922106004723817.88708333333331.001957986706820.998208580804323
7717.9517.938803622798817.92708333333331.000653775589011.00062414291592
781817.945411020008917.96708333333330.9987937767681941.00304194648594
7918.0317.962810428955818.0050.9976567858348111.00374048210941
8018.0618.04220834014118.04250.9999838348422321.0009861132032
8118.0818.086353282234418.08291666666671.000190047636180.999648725083756
8218.1318.121223413322718.12250.9999295579154481.00048432638775
8318.1618.152837807514618.16250.9994680141783681.00039454946721
8418.1818.191411887176218.20416666666670.9992993483456810.999372677214559
8518.18NANANANA
8618.27NANANANA
8718.31NANANANA
8818.35NANANANA
8918.45NANANANA
9018.5NANANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/1hu1y1305640812.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/1hu1y1305640812.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/22sk81305640812.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/22sk81305640812.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/30gbk1305640812.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/30gbk1305640812.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/4rjk31305640812.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305641011k7l6glhkfccdm62/4rjk31305640812.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