Home » date » 2009 » Dec » 16 »

tijdreeksanalyse techniek

*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: Wed, 16 Dec 2009 15:58:04 -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/16/t1261004325bg7j88951y70ucn.htm/, Retrieved Wed, 16 Dec 2009 23:58:52 +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/16/t1261004325bg7j88951y70ucn.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 «
441 449 452 462 455 461 461 463 462 456 455 456 472 472 471 465 459 465 468 467 463 460 462 461 476 476 471 453 443 442 444 438 427 424 416 406 431 434 418 412 404 409 412 406 398 397 385 390 413 413 401 397 397 409 419 424 428 430 424 433 456
 
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'Gwilym Jenkins' @ 72.249.127.135


Structural Time Series Model
tObservedLevelSlopeSeasonalStand. Residuals
1441441000
2449446.7174357595530.6315815249113232.282564240447151.28552032556163
3452450.9368848924311.330910704528501.063115107569100.824786520304844
4462458.5059418246053.013709161887493.494058175395021.50557134359278
5455457.9758683369661.94881762276254-2.97586833696630-0.81004119533735
6461459.825653061011.918223467691521.17434693898988-0.0221539072289018
7461460.9486762537411.670091848313810.0513237462585317-0.177745130952903
8463462.4535108089991.618245301337020.546489191001202-0.0370003039746671
9462462.4158104846811.09724761496450-0.415810484680734-0.371061836623348
10456458.169627823973-0.586042051209288-2.16962782397310-1.19766015233759
11455454.911979830581-1.428073798792600.08802016941942-0.598838964653821
12456454.435710342627-1.128025943706171.564289657373350.213349828096414
13472466.5396607067582.933524469788615.460339293241743.11429893793395
14472472.3330680533763.82385843771013-0.3330680533762040.628754787199817
15471474.1691317010063.22512895415968-3.16913170100553-0.412671118049369
16465466.9192136291840.0627718867572136-1.91921362918414-2.27857602087526
17459463.263401582976-1.0786267453378-4.26340158297648-0.818878003304833
18465463.129791559248-0.7874455814743381.870208440751550.206052834730637
19468466.3047656600560.4308458745673611.695234339943990.86115228510595
20467466.6377822013430.4007957447565890.362217798656637-0.0213084368819316
21463463.394913169496-0.719041809530875-0.394913169496333-0.795544108216442
22460461.335589320017-1.13112980288854-1.3355893200174-0.292904831502631
23462462.129618898161-0.539906978781503-0.1296188981614610.420399731696298
24461464.076889404520.221848233047964-3.076889404519520.544163749366548
25476468.8572103267481.619290185505527.142789673251681.01147744044862
26476473.185826612132.451189232627052.814173387870110.591285847403206
27471471.8761837375311.31016887344743-0.876183737530739-0.800951432985165
28453460.632410596199-2.48167323101260-7.63241059619914-2.70295580901936
29443450.948822191343-4.67146759276806-7.94882219134259-1.56976564679461
30442442.967884869600-5.68241377072582-0.967884869600482-0.719630490243377
31444439.803510622913-4.913478977821044.196489377086780.544874210730797
32438435.662199316235-4.678005054479732.337800683764550.166906082822629
33427428.472075448504-5.44363399106179-1.47207544850351-0.543462662979813
34424424.951713074043-4.85774232093182-0.9517130740425440.416330734078912
35416419.049180447393-5.17571485051265-3.0491804473932-0.226352148221674
36406412.503573448653-5.59254499872304-6.50357344865279-0.297884665194414
37431417.872063340163-2.2505112100117813.12793665983662.39238507208644
38434424.5186203472880.4619814027885739.481379652712221.9259584805049
39418418.11510287987-1.61935056808329-0.115102879869952-1.47023268191707
40412415.735838393516-1.84891811475748-3.73583839351554-0.163236195857756
41404412.07493888407-2.39769754880453-8.07493888406992-0.39230715566145
42409410.470923110357-2.15649409584885-1.470923110356930.172011285661586
43412408.078071021332-2.228369108394613.92192897866832-0.0510428035110751
44406403.726207326486-2.873347622188382.27379267351351-0.457333811828727
45398399.915115239961-3.15780732874464-1.91511523996091-0.201822993927957
46397396.874468319764-3.122300590347390.1255316802362800.0252309015864529
47385390.621027444770-4.07085662535123-5.62102744476956-0.675619399800132
48390395.961886412081-1.21733590356288-5.961886412081432.03717677607598
49413400.7251265016380.59875776733285912.27487349836191.29548487253752
50413401.3227790601040.59842229242010211.6772209398959-0.000238153334255017
51401401.1358210096330.360808326592136-0.135821009632864-0.168266825261693
52397400.634288330410.100534720478469-3.63428833041016-0.184976658984728
53397403.6285413748770.974820632600847-6.628541374876910.623836780206533
54409408.2942600913422.092577159342820.7057399086574950.797157992682264
55419412.8735884492912.846325304305366.12641155070890.535899269762868
56424419.1845207476973.895555084165664.815479252303280.744415252872673
57428427.3414757633595.184226013416920.6585242366407690.9143116661655
58430431.0440078449714.73662141662065-1.04400784497089-0.318086943579514
59424434.7107425715354.41344429115632-10.7107425715351-0.230184651250061
60433440.4686458784984.81997613508171-7.468645878497560.289950225207285
61456444.2399961472694.5025296684019511.7600038527313-0.226120888575190
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/1iv0z1261004281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/1iv0z1261004281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/257gz1261004281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/257gz1261004281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/3w62o1261004281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/3w62o1261004281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/4y3t81261004281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/4y3t81261004281.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/5zefx1261004281.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1261004325bg7j88951y70ucn/5zefx1261004281.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 1 ; par4 = 12 ;
 
Parameters (R input):
par1 = 12 ; par2 = 2 ; par3 = 1 ; par4 = 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