Home » date » 2009 » Dec » 04 »

Structurele tijdreeksanalyse

*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: Fri, 04 Dec 2009 13:17:38 -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/04/t12599579270sn5baasod7iqjo.htm/, Retrieved Fri, 04 Dec 2009 21:18:54 +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/04/t12599579270sn5baasod7iqjo.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 «
96.2 96.8 109.9 88 91.1 106.4 68.6 100.1 108 106 108.6 91.5 99.2 98 96.6 102.8 96.9 110 70.5 101.9 109.6 107.8 113 93.8 108 102.8 116.3 89.2 106.7 112.1 74.2 108.8 111.5 118.8 118.9 97.6 116.4 107.9 121.2 97.9 113.4 117.6 79.6 115.9 115.7 129.1 123.3 96.7 121.2 118.2 102.1 125.4 116.7 121.3 85.3 114.2 124.4 131 118.3 99.6
 
Output produced by software:


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


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
196.296.2000
296.896.1618718674227-0.01268651095021980.4909716939275250.0860215771604872
3109.997.85649995775220.4155931652753959.040132202297521.88304573603355
48897.41626376869660.243871635195932-8.77666105585891-0.467456494185525
591.195.9179594030788-0.0478297635721764-3.649505879799-0.896635600476273
6106.497.40005383637490.172409028051757.826655400085140.887236300630742
768.693.0761071637469-0.39705910807483-20.3647862701227-3.02520531147466
8100.192.4915161993549-0.4183555356052147.81037705660163-0.144907068863579
910894.2436324968791-0.19369015337755411.06538092055611.89289485129042
1010696.30971860455420.02267565113163196.530860819378112.18718107318629
11108.698.55894734766680.2225480055171906.593444507699422.35656974113319
1291.598.79599611061650.223783704608746-7.320484510490120.0165692232562231
1399.299.19465554210750.23879406333943-0.3613112245083510.251425387781672
149899.50639217472670.244841122722130-1.656664628099650.103254253493782
1596.698.53117893974470.1481765460677760.429629625185758-1.64136365338194
16102.899.1773741371270.1861622720361822.683684156690780.658413845685761
1796.999.60746631271510.204282120150003-3.171057642075540.326128408301993
1811099.80588492624970.20385309049448410.2055444122462-0.00803834350682169
1970.599.38958068031280.158724877253652-27.643454931696-0.874814263939484
20101.999.2149106966140.1344157932600703.37457341488604-0.482935013575488
21109.699.4748421620350.1436360191431879.85923919824280.185851046967658
22107.8100.0193409778830.1734183388867636.915635100661740.603463025216093
23113100.8428760175410.22241446536253210.73663346855190.989712451552453
2493.8101.3326439817840.242913984386474-8.12096338665070.409803892376178
25108102.1660373601420.2891733666116084.529309226310140.910942360346007
26102.8102.7460208765570.312140769626003-0.588907298223940.448987937159778
27116.3104.2517718077460.4064259236445149.4198818620651.83654106272736
2889.2103.7470718499220.33460597814422-12.5487334222503-1.39746185411897
29106.7104.1569400124410.3405292750782332.378354330584550.115256056455591
30112.1104.2625508270130.3220441200015028.35104105603378-0.359528535384603
3174.2104.2929262544310.299068910279756-29.4558214110489-0.446067606127425
32108.8104.6316478966740.3021982678937744.081869506047180.0605569658307478
33111.5104.8196555119120.2931664859230856.92876961709984-0.173977527971904
34118.8105.7412179249790.34297800773442311.69641252906370.954345355142754
35118.9106.6020495053990.38410653053751611.17983855890760.783587309827782
3697.6107.2229126477730.402938249704697-10.13199770511310.357005752894727
37116.4108.1500644164290.444671667974347.12624733913550.788577828270827
38107.9108.8907224973970.468232998680826-1.624494781139550.444878281818144
39121.2109.5604126322430.48425792510836111.20830843060940.302742568850661
4097.9110.1634210186520.493695495040898-12.51766358217780.178470242512235
41113.4110.7145571735040.4982569349670442.562434325938850.0863503235913144
42117.6111.0842964984940.4880570575094016.79100019038001-0.193258835069785
4379.6111.3796273026880.472766923304771-31.3667180926021-0.289865666753695
44115.9111.8485144149660.4724591865291354.05979741397394-0.00583501386620065
45115.7112.1859549994260.461751701385173.80319938640297-0.202995190229790
46129.1113.0879661856280.49665980472217715.06971687325320.661574159950877
47123.3113.7274886026080.5079849182490849.2669313098240.214560500698876
4896.7113.8056989241910.473924118810532-16.1868955791862-0.64521022119424
49121.2114.1504566458750.4636898446312757.32562972000344-0.193895446725384
50118.2115.0037273343080.49455245583642.363459091968760.584900465992555
51102.1113.7042952368850.352442535840324-7.76838182324776-2.69398427703633
52125.4115.2314964299800.4455012487691397.65614657275211.76441185270405
53116.7115.9712750722410.468813522502930.09929200299976280.442045513572269
54121.3116.3828445349910.4642784700663915.03960894674692-0.0859985382032313
5585.3116.8160029999180.461812925503101-31.4494268200874-0.0467563664472438
56114.2116.7035322016260.416312728777668-1.27488356153166-0.862879213363571
57124.4117.2075347602430.423260395031037.004857874768830.131756650380654
58131117.4994880721700.41285712996408313.781422607914-0.197284711475872
59118.3117.0786530884230.3468075064900443.00478326692709-1.25253114634782
6099.6116.9272193684480.307335914110379-16.2614276120992-0.748532767038808
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/1q3u61259957855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/1q3u61259957855.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/2eh9m1259957855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/2eh9m1259957855.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/3zuf51259957855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/3zuf51259957855.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/4s9mk1259957855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/4s9mk1259957855.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/5rp4k1259957855.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599579270sn5baasod7iqjo/5rp4k1259957855.ps (open in new window)


 
Parameters (Session):
par1 = FALSE ; par2 = 0.0 ; par3 = 0 ; par4 = 0 ; par5 = 1 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
Parameters (R input):
par1 = 12 ; par2 = 0.0 ; par3 = 0 ; par4 = 0 ; par5 = 1 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
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