Home » date » 2010 » Dec » 11 »

STSM: Faillissementen

*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: Sat, 11 Dec 2010 13:09:34 +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/11/t1292073520ty2di7sz9l6t1fd.htm/, Retrieved Sat, 11 Dec 2010 14:20:45 +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/11/t1292073520ty2di7sz9l6t1fd.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 «
46 62 66 59 58 61 41 27 58 70 49 59 44 36 72 45 56 54 53 35 61 52 47 51 52 63 74 45 51 64 36 30 55 64 39 40 63 45 59 55 40 64 27 28 45 57 45 69 60 56 58 50 51 53 37 22 55 70 62 58 39 49 58 47 42 62 39 40 72 70 54 65
 
Output produced by software:


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


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
14646000
26247.91099099523980.4576979908064833.27326644418531.53740801159490
36652.21810919476321.235494670532443.110598230211791.66340889373574
45954.80853796848481.459172821070610.8853652091579570.524695635574755
55856.45331734311231.484961205045331.097447912558150.0712082144066377
66158.30256600665661.528621813593531.787754910366630.143265671402083
74155.50981658494831.07341424352759-3.20527967546787-1.76638134616308
82749.86607298657890.442407654810065-4.36853300101980-2.8676301503383
95851.13487263324220.5124497026026294.469844280577070.368629103685274
107055.14962589618280.7828555253307544.19218400343561.62955096914827
114954.83125293518150.70477805531319-2.32506185403912-0.532976650346298
125955.92695186113410.7304055292091961.775870941470300.196188580476513
134456.33221757187150.736551767164163-10.1266938932362-0.329507017818823
143653.31617728252580.551370851135196-4.85096872699698-1.97250971184503
157256.14614304485460.6784540300870059.182328911292051.08285304248221
164555.05808894913260.58285030399649-4.74389861543802-0.862737430640465
175655.42479698736880.5718090175016881.26024583279445-0.110650260025021
185455.1216550071960.5297819163206231.7913244432931-0.46809716299563
195355.20648262239970.509645646754152-0.661514110110605-0.247188712475582
203553.29296615133870.405995059714273-9.57646047019087-1.38962527012726
216154.04463908151150.4200168013982195.674133673705270.203654897469071
225253.5161296400010.3834471215002622.09151193050818-0.571991077014357
234753.18379786772960.35732766183705-3.39326960331675-0.441277084928003
245152.75761083861020.3318183982296401.42353098950672-0.500327135262522
255253.3936672854050.334464713935509-2.912434540343300.238016698230939
266355.75062991009050.38638105192157-1.080437252882321.33115093069008
277457.49715484388240.42978924230481611.33600040761340.836132538702332
284557.00919070780080.399552381535283-8.55575179521326-0.560666586608115
295156.16347015261850.359391328280942-0.410074478700819-0.77134350606446
306457.00846440106450.374475200593785.101115123845370.306300014569987
313654.46464814010950.287519041872966-6.88373841602748-1.87336479220132
323052.37791475976830.21965600670457-12.7918471892073-1.54833518956462
335551.68270151079320.1945591971701617.06832201189843-0.605031776510308
346452.89493483803830.2212771672216566.871732196831170.681880685163791
353951.85389862525620.190131975351364-7.51371554446141-0.858516679986867
364050.31704616222720.153398183928063-2.78147007264109-1.20700649875124
376352.13366801833410.1728509155257172.991942302214041.25744345028980
384551.87769963652360.165163670186253-4.98992881429014-0.303709661346437
395951.30813831609310.14893914024805110.7703334599327-0.498755239588257
405552.71542265132190.178504347188585-2.912133415715160.844384311829116
414051.46078428675970.144739891109483-5.52656594183589-0.964741535525588
426451.91130998120740.15179441715717310.81112856543160.207607035354958
432749.5696363498910.0959863921279493-12.0411062303291-1.70961224487393
442848.13992657400860.062982215133594-13.6297315937725-1.05622452453552
454546.77362616125950.03319385807057874.38718216971831-0.99864912109608
465746.77647939822110.032589557186437410.3556758144455-0.0213994993193094
474547.29312979994860.0415731598280422-4.429471239346950.345405804996543
486950.41294031499920.090945667492574.704609485312262.23928536291905
496051.59051807420130.1036460489945313.327662727243290.817930460757922
505652.92265721067110.121202400532406-2.489044669890710.898735338757708
515852.66957619201480.1148803252752206.97612087111293-0.266788689700409
525052.58727993752260.111304197834970-1.73128769627027-0.139074697674046
535153.05281151293680.117841905695975-3.588591941975300.249708537245788
545351.55480814769130.088284333959748.48023758748402-1.14383034506231
553750.88450161128660.074707801614123-10.5605720733483-0.540234450862252
562248.87974313877950.0385570759719390-17.7030046038042-1.49067364552621
575548.8553153357940.03750044952052756.42471567921443-0.0454581979877187
587050.27524165361810.059624812326053113.52802509583671.00508440250233
596252.78823425992940.096142318248043-1.898900316141011.80000855050602
605853.47354597992820.1038746885914091.818807558910900.43799085902189
613951.83046932071090.0847434072077441-4.66011567788266-1.31980013724254
624951.56941356241340.0805485381092885-0.976452219488245-0.257688832278507
635851.45745524139790.0779016256448297.41308611130829-0.141163896816139
644751.12397320306680.0718433881375621-2.28203160692184-0.299163295924578
654250.23672778756020.0573621991680391-3.9531025424518-0.696230570898364
666250.36808121376230.058478515156781211.30082767821430.0538204409745376
673950.11049788071760.0537837861268707-9.69046163350035-0.23079008958385
684051.05567662640150.066694662416012-15.08103958546090.653973747021786
697253.13722937092430.09489828109645549.712020504675821.48589765140273
707054.17718961946290.10752172300360711.50278492709500.701013670982159
715454.63671720580210.111910649706803-2.2585467711440.262945414533897
726555.54987287429390.1209274554127355.721601258787570.603880419807055
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/13n8w1292072969.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/13n8w1292072969.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/2ew7z1292072969.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/2ew7z1292072969.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/3ew7z1292072969.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/3ew7z1292072969.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/4oooj1292072969.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292073520ty2di7sz9l6t1fd/4oooj1292072969.ps (open in new window)


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