Home » date » 2009 » Dec » 05 »

prijsindex van de grondstoffen

*The author of this computation has been verified*
R Software Module: /rwasp_structuraltimeseries.wasp (opens new window with default values)
Title produced by software: Structural Time Series Models
Date of computation: Sat, 05 Dec 2009 02:18:34 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u.htm/, Retrieved Sat, 05 Dec 2009 10:20:03 +0100
 
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/Dec/05/t1260004796n2u6idevqrpr72u.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 «
226.9 235.9 216.2 226.2 198.3 176.7 166.2 157.6 163.4 159.7 191.0 239.4 321.9 362.7 413.6 407.1 383.2 347.7 333.8 312.3 295.4 283.3 287.6 265.7 250.2 234.7 244.0 231.2 223.8 223.5 210.5 201.6 190.7 207.5 198.8 196.6 204.2 227.4 229.7 217.9 221.4 216.3 197.0 193.8 196.8 180.5 174.8 181.6 190.0 190.6 179.0 174.1 161.1 168.6 169.4 152.2 148.3 137.7 145.0 153.4
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
1226.9226.9000
2235.9234.9775713535277.990754532539240.04340840932161290.594929822638374
3216.2218.061229343349-13.36102261053300.095609426326639-1.53209263112949
4226.2224.5827651875593.848013610134680.07681249976321411.21454688585603
5198.3200.382580252163-20.45222616221880.0796729048664979-1.70944985815841
6176.7176.857352278825-23.11483587397790.079548580008023-0.187302741310175
7166.2165.234350874981-13.15790015093350.07975667451416560.700421788802957
8157.6157.130620446742-8.778857628075060.07976649095872890.308043882232721
9163.4162.2489486399913.261933311646450.07975569172194920.84700980605779
10159.7160.041836221989-1.476555871682610.0797575873561435-0.333329165429231
11191188.60459409433524.55010661422320.07975647635515271.83084636176085
12239.4237.4475713844745.59793693752290.07975683895449721.48061026230833
13321.9316.22590891136374.02932110603813.144488084990362.12051058399833
14362.7364.7780995413754.403633435663-0.612418506262757-1.33721830318151
15413.6414.54609157191650.3657391950223-0.596714793593977-0.278702153542578
16407.1411.6751399326084.32373016815022-0.500722469679577-3.22948447999051
17383.2386.004893101622-21.6562516035199-0.493514437453643-1.82755058175271
18347.7349.350708232111-34.6516493032746-0.494490899316155-0.914155286411903
19333.8332.891416091497-18.8888811700869-0.4938614906255591.10883123212785
20312.3312.88037156769-19.8611504295694-0.493866633926793-0.0683943103820708
21295.4295.688131170628-17.5487561809360-0.4938699742436590.162665443119619
22283.3283.38918040804-13.0002225676284-0.4938734517143640.319966734825559
23287.6286.8267314543841.24179267764638-0.4938748882434111.00185499427581
24265.7267.759447264724-16.3543989595443-0.493875376889243-1.23780463427042
25250.2245.662989617662-21.29350277330854.97645338314252-0.361247129724354
26234.7234.427193076188-13.2936863599598-0.3571168669218380.551260925117778
27244242.7711577793745.52803588723932-0.4115241158408961.30551040209414
28231.2232.780646166577-7.89950344738987-0.390740663385054-0.942538568306839
29223.8224.240035215729-8.45485439533761-0.390626284115644-0.0390659884846729
30223.5223.310157458594-1.93473318315231-0.3902625963062620.458655756001019
31210.5211.640936161864-10.3691053738551-0.390512607893125-0.593315702695328
32201.6201.93907417451-9.79099037148415-0.3905103376272740.04066751730194
33190.7191.166200114861-10.6417132872673-0.390509425362144-0.0598441291925417
34207.5205.93193162745311.3717952553939-0.3905219189867781.54854092548502
35198.8200.486885591319-3.19865212204089-0.390520827991362-1.02495856257155
36196.6197.011828170781-3.4381352163987-0.390520832928295-0.016846445534218
37204.2199.1475684990391.365242031199364.625064409943290.34791027983187
38227.4225.95940261820421.9791778628982-0.229252135375411.42832119137737
39229.7231.1712592866627.40577790914908-0.195730249159575-1.01376894182994
40217.9219.536971814108-9.07331031150869-0.175448168684948-1.15724897384732
41221.4220.781681241306-0.135074167471849-0.1769119215929620.6287580510624
42216.3216.775485241292-3.48922695159914-0.177060684725011-0.235947010543113
43197198.330302517460-16.4476313695432-0.177366105196210-0.911558783885738
44193.8193.111716632261-6.71853509201076-0.1773357261480200.684393571719537
45196.8196.2198335032281.79546682166495-0.1773429856355340.598917721873339
46180.5181.918216867296-12.1513634359492-0.177336691821110-0.981090197145223
47174.8174.604421882307-7.95999739613025-0.1773369413637780.294841771161927
48181.6180.6942719549654.21307219792854-0.1773367418274100.856314949706574
49190187.7031965665536.625097421332892.082200222778090.173685235279959
50190.6191.0325596988353.92344228184305-0.209810392122436-0.187799180362499
51179180.302734391925-8.80570224954928-0.185497013266216-0.887167336827954
52174.1174.088706848288-6.56221275658529-0.1877888111503740.157595420752676
53161.1161.733592431604-11.5805985045597-0.187106726213236-0.353017359925939
54168.6167.4529129799983.40889971226353-0.1865549535058891.05443311337359
55169.4169.6778453238932.38306927111239-0.186575020518467-0.072162036180652
56152.2153.794711411814-13.4431706512623-0.186616035250958-1.11329732596853
57148.3147.904392124012-6.89923287119047-0.1866206662207460.460333500986748
58137.7138.109813995339-9.4078172140785-0.186619726653979-0.176466441632588
59145144.0068134749613.85258212674772-0.1866203819028830.932803193713155
60153.4153.1767219930298.45962033149334-0.186620319226440.324082242207736
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/1rtcw1260004711.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/1rtcw1260004711.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/2jual1260004711.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/2jual1260004711.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/384wa1260004711.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/384wa1260004711.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/4o90m1260004711.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/4o90m1260004711.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/58n5n1260004711.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260004796n2u6idevqrpr72u/58n5n1260004711.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 12 ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
nx <- length(x)
x <- ts(x,frequency=par1)
m <- StructTS(x,type='BSM')
m$coef
m$fitted
m$resid
mylevel <- as.numeric(m$fitted[,'level'])
myslope <- as.numeric(m$fitted[,'slope'])
myseas <- as.numeric(m$fitted[,'sea'])
myresid <- as.numeric(m$resid)
myfit <- mylevel+myseas
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(mylevel,na.action=na.pass,lag.max = mylagmax,main='Level')
acf(myseas,na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(myresid,na.action=na.pass,lag.max = mylagmax,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(mylevel,main='Level')
spectrum(myseas,main='Seasonal')
spectrum(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(mylevel,main='Level')
cpgram(myseas,main='Seasonal')
cpgram(myresid,main='Standardized Residals')
par(op)
dev.off()
bitmap(file='test1.png')
plot(as.numeric(m$resid),main='Standardized Residuals',ylab='Residuals',xlab='time',type='b')
grid()
dev.off()
bitmap(file='test5.png')
op <- par(mfrow = c(2,2))
hist(m$resid,main='Residual Histogram')
plot(density(m$resid),main='Residual Kernel Density')
qqnorm(m$resid,main='Residual Normal QQ Plot')
qqline(m$resid)
plot(m$resid^2, myfit^2,main='Sq.Resid vs. Sq.Fit',xlab='Squared residuals',ylab='Squared Fit')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Structural Time Series Model',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Level',header=TRUE)
a<-table.element(a,'Slope',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Stand. Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,mylevel[i])
a<-table.element(a,myslope[i])
a<-table.element(a,myseas[i])
a<-table.element(a,myresid[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