Home » date » 2010 » Dec » 26 »

Paper Statistiek

*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: Sun, 26 Dec 2010 13:26:19 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow.htm/, Retrieved Sun, 26 Dec 2010 14:25:18 +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/2010/Dec/26/t1293369912j6u4vhwo7v2qrow.htm/},
    year = {2010},
}
@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 = {2010},
    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:
Structural Time Series Model bouwgrondprijzen: gemiddelde prijs(€/m²)
 
Dataseries X:
» Textbox « » Textfile « » CSV «
26 26 27 28 27 29 27 30 27 30 32 30 32 33 34 32 34 37 37 36 34 38 41 41 44 42 45 45 49 54 52 53 51 55 60 60 63 60 64 65 75 70 72 69 75 74 74 75 79 79 85 78 84 85 85 82 91 90 98 98
 
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
12626000
22626000
32726.48850720841480.1221537396771730.1338473773901010.311760858102279
42827.13421397878240.2331182556327300.2287312623578450.457902952748373
52727.44027608551300.247518422173008-0.6188660723813050.107913249961221
62928.16438853576890.3342288632620160.2690534159734080.406258176803948
72727.83136914171590.2142971962194310.123585017988838-0.655240729634882
83028.66813057616690.3282711295876640.3540502704337360.654334776357932
92728.57631737326140.243146165322458-0.869867284285748-0.473927224296203
103029.13376286433540.3007396911999110.3948646461133660.319730795081523
113230.32824699009170.4667019668690330.2890887840187080.931954047212896
123030.36613828980200.3855809157279390.304392170664299-0.449556493624059
133231.54069828297080.540959024058378-0.7149387432744340.816190965739956
143332.33080946333520.5880546333670410.2890997524905490.257863805577972
153433.21626766442420.6444627058949040.3270453643097050.309688840936
163233.11344581876470.5017927720874650.0333059243567654-0.776046584144826
173434.00865413224970.577398247942449-0.5871079025192840.403193677854578
183735.38674614815010.7300932349352320.4030519536652830.826298883541811
193736.31672268113690.7682215173238640.3800581051268530.207164683675655
203636.70453914541170.695527650284469-0.126966174439744-0.393774339235075
213436.42343471655480.509339793078035-0.978061075206743-1.00499506364408
223837.14478613047110.5498262596698210.5371518586280660.218276514321450
234138.72611107351680.746739735190330.7223748759978141.06586906159781
244140.05183543762830.8573234861127550.07509671438556730.598406534170209
254442.41868416066761.14480758721019-0.6604423079762611.55667131929052
264242.90896267932421.019864876315350.0690265686603976-0.673473901677294
274544.09009047769491.050636069756000.6685662342234960.166393315635449
284545.14425023961221.05130865599812-0.1495382794093170.00363809002217009
294947.40674551621861.28205241149257-0.2064332084002341.24926726787648
305450.63908950358751.654148556636680.453092093876982.00708179380598
315252.02537912470451.603062174240420.374314600472984-0.276200244826131
325353.53302279055091.58485786323550-0.39031443816904-0.09844269171555
335153.81435907145671.33646061649704-0.878126048922161-1.34402971906003
345554.87224930687121.283331455507760.542527073932561-0.286763584541826
356057.37194489893051.515247699520230.8163823970456571.25381252112246
366059.39284679662241.61168624892955-0.1472796325741430.521405111518667
376362.05927228386021.81269199830320-0.625363939938391.08713776852673
386062.38556660276731.52927158133358-0.174545167455207-1.53043624920666
396463.64923349288281.478639176349070.745869923915414-0.273719345577482
406565.1654643100731.48580700944209-0.2214552182773280.0387484148476624
417569.79278818728592.084503323681690.5439031616098243.23723313595437
427071.35443567577631.98482310068779-0.57724741234765-0.538416359528932
437272.62633427182631.848931951304450.433275091617407-0.734581920792908
446972.72634174470261.51550798876610-1.12452229870255-1.8022892935136
457574.22017697986731.511377720293960.811988644194288-0.0223295466831262
467475.24920081265261.41942939210537-0.53259991774425-0.496746980013409
477475.4387945738581.185025391259210.388011908750471-1.26703945153618
487576.39561273369591.14152382947651-1.05640065860976-0.235130011074764
497977.71587558959381.175586655208921.018880733812160.184136170260871
507979.05649536225321.20704340379994-0.3015776506275880.169965300409228
518581.82507512405031.504654912483300.856346394763331.60863211013474
527881.85355659177861.22328535447966-1.66062761274873-1.52077448559197
538483.03007364497971.214372621975301.03932328103317-0.0481769764152994
548584.68724479107461.29876892201547-0.3446341358173530.456044350314516
558585.25373762814211.159209730976110.833250254835934-0.754314366045447
568285.40244919471460.966612554835191-1.90191954722115-1.04094507427672
579187.64122930475141.209051371960671.471187103386951.31041865321177
589089.37257856321141.30859585444345-0.1478335613190800.537930415956737
599892.99810166684971.750152421241731.563306697997002.38655217471476
609896.7594555535122.13346407384452-1.745113288314612.07168501175944
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/1o4di1293369976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/1o4di1293369976.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/2zdul1293369976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/2zdul1293369976.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/3zdul1293369976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/3zdul1293369976.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/4a5co1293369976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/4a5co1293369976.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/5a5co1293369976.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293369912j6u4vhwo7v2qrow/5a5co1293369976.ps (open in new window)


 
Parameters (Session):
par1 = 4 ;
 
Parameters (R input):
par1 = 4 ;
 
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