Home » date » 2010 » Dec » 20 »

STSM - faillisementen nijverheid

*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:33:30 +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/t12928518939uzzi1wlsblmv6s.htm/, Retrieved Mon, 20 Dec 2010 14:31:39 +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/t12928518939uzzi1wlsblmv6s.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 «
48 49 59 56 47 56 50 54 79 50 54 56 50 46 47 43 52 48 36 41 34 37 37 34 55 37 27 38 43 26 32 29 41 55 50 30 35 29 22 39 24 38 30 31 39 33 57 49 74 74 115 67 51 114 70 73 77 67 60 73
 
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
14848000
24948.48355531416140.04508897252755770.05741944415558910.066091969717463
35953.26434946248290.3603078438673070.5803830012784920.715462380994163
45654.54693220695480.4057588392897830.3622937660806550.147832922569044
54751.36471973788230.2645501800681740.0570801987295856-0.592327924025418
65653.34672565434560.3222725683735610.4901581125502650.287976792902266
75051.99234098500310.2716237514460460.144767701651258-0.283538684676336
85452.86721279929980.2885916093312120.3586761345831250.102501088069710
97963.95411663134480.577922050484041.135152168319131.83975286392058
105058.26455426147760.415674698647807-0.172007923441882-1.06947612345479
115456.47384472536750.3600142820216180.379034307642431-0.376837534559955
125656.30990413255880.3470661124098890.368183901821673-0.0895373068586133
135055.87002455084630.423396028306244-4.67556943058289-0.182115530955458
144651.3181670871120.229352757294846-0.276639463057748-0.711172682161763
154749.28058398047310.1570699768540080.315594236406929-0.356650752245261
164346.54524844305700.0845980918405958-0.00548886692811479-0.47824852972098
175248.90062525860440.1322969089022030.2414956442470690.383363870556341
184848.47835465531180.1219242415839280.228431400695907-0.0944966010247166
193643.3418048720080.0303823272467762-0.59956109984278-0.899954040282278
204142.3972168995780.0141162088807799-0.143414480178913-0.167215267612003
213438.5407702919013-0.04890543128520720.44410939004563-0.664515984663655
223738.0077627533247-0.0566821835261305-0.383849328360152-0.0831515438298939
233737.5300603118559-0.063392392112890.0127225527401368-0.0723288157461003
243435.9655273328857-0.0860159433976338-0.0279746051358467-0.257963606941926
255542.2223784964475-0.3161940263722013.993852844341661.25863970147881
263740.0930989532443-0.363962033787098-1.05887172883997-0.281449568608998
272734.2618258271655-0.494903159563017-0.798999419331397-0.887128446007918
283835.7183980114887-0.456283143823238-0.1237985756501310.326852063380065
294338.639408518804-0.3981281546337610.1204751548543760.573463845087279
302633.2514191353127-0.476859388042633-0.935463211082794-0.85237103158677
313232.7649152503695-0.477004006568099-0.752661380197807-0.0016519921505009
322931.0845224179931-0.494554749528413-0.552813916884883-0.206387555162543
334134.8360934615138-0.4334758297184960.7548949742812660.728638355886549
345543.2995897242132-0.3062264503441720.3631383590031661.52703407745410
355046.1940842554349-0.260666687655523-0.2732705873715780.549373760889409
363039.7485793548057-0.340508812460426-1.85367823584773-1.06194629241181
373536.0225184471337-0.2878562227064593.47929100434421-0.634153899121415
382932.972665987874-0.345819504485971-0.747464534478297-0.444635919758805
392228.4348817274144-0.433083749095241-1.43193087036311-0.689235293669122
403932.5762165334568-0.350389264977690.7990955875149810.769539450181696
412428.6966790218554-0.407672498944957-0.29646923692442-0.599881827853066
423832.5028141707185-0.3436725407081730.2111848642553370.719460077012531
433031.5980734695633-0.351881782199347-0.892308282386911-0.0959844972251893
443131.4761450543421-0.348581511199892-0.76576246084180.0393732685344838
453934.3520853799691-0.3027015078048190.58459315138740.552306577012687
463333.6694266640623-0.308091597595351-0.190541108537781-0.0650870620941148
475742.8881535856428-0.1739500104327602.102979350003921.63193254999632
484946.1674532643648-0.130653447497648-1.527357068635020.591751687622329
497455.2484107624321-0.1726740101625546.812105551459371.67212696377326
507463.4698221324493-0.01840024634922050.5380951790170071.37828680623751
5111585.93384530887010.4147547188320382.134962318586693.72386248104591
526778.53606965049650.278416861614145-1.96803720545403-1.31659649822396
535167.49294576422760.0965311869526432-2.47124245860172-1.92395211972329
5411485.96117300993360.3768491019659975.173819322817733.13315429375489
557080.52586215634550.290666727290494-3.2766682016665-0.992720931796824
567377.85492355688110.247378627042241-1.15761731004758-0.506167168805854
577777.23598340124120.2347934984723840.845953011599004-0.148098597441190
586773.60765664166460.178817438750667-1.78240821735651-0.660446221293281
596067.32311333803310.08623383752580850.751131174168254-1.10492777802117
607370.54955658828650.126376703068323-1.477465184842960.537001124713946
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928518939uzzi1wlsblmv6s/1mf221292852005.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t12928518939uzzi1wlsblmv6s/1mf221292852005.ps (open in new window)


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


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


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


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