Home » date » 2010 » Dec » 20 »

STSM - bev.aantal

*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, 20 Dec 2010 13:28:47 +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/20/t1292851709gn343wqtx2ncdvo.htm/, Retrieved Mon, 20 Dec 2010 14:28:35 +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/20/t1292851709gn343wqtx2ncdvo.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
16306977 16307888 16307482 16308869 16311019 16312596 16315238 16319511 16327575 16330818 16331930 16334210 16334715 16335459 16334090 16333559 16334600 16336676 16337253 16342333 16348917 16352678 16352972 16357992 16359133 16362938 16365065 16367596 16371278 16374541 16377339 16383275 16393843 16399139 16401009 16405399 16409106 16414307 16418055 16423337 16428686 16434935 16440452 16449092 16464859 16473709 16479291 16485787 16489042 16495231 16501683 16506782 16513615 16520661 16528400 16538542 16554596 16562317 16568499 16574989
 
Output produced by software:


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


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
11630697716306977000
21630788816307769.6479338802.429049481105118.3520661608750.596812355298189
31630748216307743.9254104159.003088416110-261.925410406686-0.480529304271365
41630886916308689.3026867793.076169037753179.6973132604610.442252697891651
51631101916310832.92420331862.70797688004186.0757967338490.742740018322194
61631259616312684.05583171853.52272502671-88.0558316668831-0.00639744523962094
71631523816315142.90430792334.3598198067795.09569206584280.334609318661443
81631951116319237.70200883732.75073843248273.2979911769630.973170392718777
91632757516326957.13346596899.09117146745617.8665341272532.20350686356295
101633081816331475.15748745008.07321314193-657.157487428788-1.31598636352216
111633193016332538.15368151874.89231978793-608.153681536321-2.18042618470508
121633421016334079.24698681609.78577870023130.753013182522-0.184491476964418
131633471516334826.7444229926.091133625024-111.744422934432-0.476802917964902
141633545916335151.4000672447.847366270083307.59993282131-0.33749539563946
151633409016334618.117871-298.049741571975-528.117871009226-0.520077635925116
161633355916333754.7003244-731.900000761233-195.700324355116-0.305053408189535
171633460016334072.783755671.2442703724557527.2162444428280.557250449839938
181633667616336231.48637971662.18099228068444.513620285471.10725994173139
191633725316337524.11666321380.12465440747-271.116663239638-0.196343358778851
201634233316342435.61363164076.61774239966-102.6136316192111.87645403719288
211634891716347890.64880075129.134506237551026.351199326350.732463197758377
221635267816352698.59682884883.8971386203-20.5968287699800-0.170667100787337
231635297216354257.27199082345.22375635811-1285.27199079785-1.76670740081873
241635799216357468.06200393005.63222097429523.9379961118490.459649119766005
251635913316359405.83284302191.04632983813-272.832843039710-0.56827557652956
261636293816362200.87021672652.35595496233737.1297832753670.321476483744732
271636506516365293.32430382984.19505624561-228.3243037981220.230791017358861
281636759616368017.72506922787.99214238032-421.725069207335-0.137297869625761
291637127816371018.27312152948.79360768452259.7268784928110.111818714740832
301637454116373812.84457842832.51974293858728.155421570669-0.080850396004529
311637733916378127.79286333950.47136757629-788.7928633034770.778252166564338
321638327516383598.17589635097.55420346252-323.1758962991540.798293587672257
331639384316392197.43035367740.675299849051645.569646450161.83935192007960
341639913916398728.61180486827.78027766495410.388195184257-0.635329030874804
351640100916403003.4861974901.53774300114-1994.48619698999-1.3404772077725
361640539916405095.45402392782.98676016899303.545976141113-1.47494285795660
371640910616409192.37478163774.29149833876-86.37478164254820.691067023130556
381641430716413596.77631314249.49417686857710.2236868558780.330632798218718
391641805516418160.54309804485.10969395089-105.5430980294880.163895632310000
401642333716423548.73542625162.42715779133-211.7354262373060.472759137459043
411642868616428291.93877464847.38081791848394.061225427853-0.219284536099624
421643493516434135.74104675594.66001902326799.2589532756070.519578141479515
431644045216441304.04049706774.24722315774-852.0404970293850.820976447031814
441644909216450121.27227948306.68993293857-1029.272279387661.06654219208397
451646485916462393.969916611282.40385479282465.030083449672.07080225025958
461647370916472938.926424610729.1228671495770.073575354833-0.385049269862007
471647929116481031.40896338751.70695851332-1740.40896331086-1.37612014232664
481648578716486410.72765736223.40967259856-623.727657251446-1.76040189691263
491648904216489783.69767044085.16478635051-741.697670374698-1.48962248093219
501649523116494443.13405204515.60734023491787.8659480377810.299424906629549
511650168316501480.80146666399.5827438526202.19853335511.31072720351576
521650678216506931.29486155690.51396384101-149.294861518056-0.494327611006217
531651361516513076.17972756030.51567022144538.820272472730.236716011241474
541652066116519847.54361996584.28848106541813.4563800548380.385112131890457
551652840016529189.16504378643.8766878351-789.165043679541.43315819182033
561653854216540342.174405110518.8945209348-1800.174405109351.30495496219462
571655459616552054.331524911410.88481582812541.668475095160.62074453128931
581656231716561519.77475209956.67739629438797.225247964324-1.01201261439228
591656849916569739.08540738658.4253068564-1240.08540732774-0.90352086081914
601657498916575388.48991526410.18136671235-399.489915176402-1.56536530441666
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/1za1m1292851723.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/1za1m1292851723.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/2ak071292851723.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/2ak071292851723.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/3kbia1292851723.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/3kbia1292851723.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/4kbia1292851723.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/4kbia1292851723.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/5kbia1292851723.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292851709gn343wqtx2ncdvo/5kbia1292851723.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