Home » date » 2010 » Dec » 27 »

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: Mon, 27 Dec 2010 12:43:27 +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/27/t1293454098amkbd672yoskedk.htm/, Retrieved Mon, 27 Dec 2010 13:48:19 +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/27/t1293454098amkbd672yoskedk.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 - Gemiddelde bouwprijzen
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
12626000
22626000
32726.48850723478550.1221537348695420.1338473880495810.311760983373203
42827.13421405076630.233118246734630.2287312697000970.457903128645816
52727.44027613981040.247518398811714-0.6188660110253740.107913243035474
62928.16438864848970.3342288478336080.2690534108404150.406258323165324
72727.83136908258850.2142971677066630.123584922206004-0.655240986100755
83028.66813064941070.3282711099434080.354050352081280.654335034038774
92728.5763173215620.243146163020616-0.869867345353114-0.473927411775527
103029.13376288745290.3007396928845560.3948647447145390.319730896984165
113230.32824726075510.4667019796328720.2890888069939940.931954385446869
123030.36613833259440.3855809020314550.30439219579371-0.449556794087097
133231.54069849399380.540958999188249-0.714938775125630.816191289314981
143332.33080963729610.5880545949221280.2890997853524010.257863813925656
153433.21626780065960.6444626535934760.3270454451640390.309688871900484
163233.11344571938970.5017927206195220.0333057824407519-0.776046862174301
173434.0086541199340.577398204151658-0.587107854851830.403193878082839
183735.38674629186560.7300931904323830.4030520742050440.826299175426268
193736.3167227518260.7682214576222070.3800582178280840.207164676898101
203636.70453913871880.695527605608356-0.126966403018158-0.393774402828982
213436.42343448498010.509339759241467-0.978061212475755-1.00499537425496
223837.14478595496010.5498262326985460.5371520437755140.218276631897497
234138.72611111655810.7467397049247410.7223751685948841.06586943848126
244140.0518356462180.8573234653161160.07509660646582440.598406805604166
254442.41868468628011.14480755991479-0.6604423290096061.55667184981305
264242.90896284103521.019864816339820.0690264697580345-0.673474327413291
274544.09009048930351.050635984808110.6685664664832180.166393242126038
284545.14425026463291.05130858965528-0.1495384496440730.00363819199614165
294947.40674573892361.28205233790169-0.2064330147086751.24926768508418
305450.6390900663621.6541484683360.4530922201888542.00708245691218
315252.02537932392821.603062046290760.374314631884652-0.276200561016786
325353.53302291912741.58485775079644-0.390314716962754-0.098442644017665
335153.81435876818231.33646050540347-0.878126138597903-1.3440302049865
345554.87224890457871.283331360062690.542527272141132-0.286763605978873
356057.37194482470251.515247626611490.81638265533821.25381310449318
366059.39284689453651.61168619852704-0.1472797558636030.521405424874104
376362.05927259708511.81269194816893-0.6253639477864131.08713816958434
386062.38556643514221.52927152021036-0.174545350128675-1.53043687322043
396463.64923320486641.478639116627160.745870122729308-0.273719438715818
406565.16546415058361.48580698381513-0.221455313985070.0387486134101313
417569.79278872757532.084503286323590.54390362587083.2372342629851
427071.35443597302761.98482304912494-0.577247751785819-0.538416634812738
437272.62633422575131.848931878198050.43327509655402-0.734582307536485
446972.7263413838671.51550795325048-1.12452274634797-1.80228975328815
457574.22017651746141.511377673224350.811989190289589-0.0223296173603243
467475.24920046180611.41942939833184-0.532600122988277-0.496746875207814
477475.43879404586571.185025421282460.388011891902151-1.26703978914813
487576.39561251264431.14152392319615-1.05640100116612-0.235129753300575
497977.71587535596621.175586720142671.018881243416810.184136082383642
507979.05649533733971.20704348825421-0.301577729754250.169965468519296
518581.82507552789471.504654987992560.8563465155792681.60863265377257
527881.853556712321.22328543212972-1.66062818134754-1.52077503364625
538483.0300735836341.214372652396251.03932369656857-0.0481772494322569
548584.68724491614861.2987689610205-0.344634199063090.456044564723472
558585.25373749058041.159209747450960.833250354993239-0.754314765429988
568285.40244907731930.966612620276884-1.90192010580532-1.04094519272034
579187.64122940803451.209051406291661.471187610629081.31041896721792
589089.37257876599991.30859587625757-0.1478335150322710.53793054646883
599892.99810228206141.750152406915651.563307036682352.3865528577459
609896.75945662800312.13346405375339-1.745113733050052.07168574310596
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/1xb0h1293453803.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/1xb0h1293453803.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/2xb0h1293453803.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/2xb0h1293453803.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/3xb0h1293453803.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/3xb0h1293453803.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/4qkzk1293453803.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/4qkzk1293453803.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/50tym1293453803.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293454098amkbd672yoskedk/50tym1293453803.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
bitmap(file='test1.png')
plot(as.numeric(m$resid),main='Standardized Residuals',ylab='Residuals',xlab='time')
grid()
dev.off()
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='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