Kalman filter function

Discussion of State Space and Dynamic Stochastic General Equilibrium Models

Kalman filter function

Postby roger02 » Thu Jun 12, 2008 8:09 am

dear administrator
to estimate the time varying coefficients of betas of CAPM using the kalman filter, i dont really know how this works as its so confusing in the
user guide. how can i apply the kalman filter for the model? if the filter
is a built-in funciton in wizards, how can i locate it? is the process is more complicated than i think or does it require many things to do after i get the data into the software!?
a step by step approach is appreciated and recommende for a naive person like me :lol:
roger02
 
Posts: 2
Joined: Tue Jun 10, 2008 9:28 am

Re: Kalman filter function

Postby TomDoan » Thu Jun 12, 2008 9:57 am

roger02 wrote:dear administrator
to estimate the time varying coefficients of betas of CAPM using the kalman filter, i dont really know how this works as its so confusing in the
user guide. how can i apply the kalman filter for the model? if the filter
is a built-in funciton in wizards, how can i locate it? is the process is more complicated than i think or does it require many things to do after i get the data into the software!?
a step by step approach is appreciated and recommende for a naive person like me


There are several examples of this among the Tsay textbook examples. Go to http://www.estima.com/textbookindex.shtml, click on "Tsay's Analysis of Financial Time Series", and look at tsayp510.prg and tsayp533.prg. These will also be on the CD's for RATS versions 6.35 and later.

Tom Doan
Estima
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Tsay textbook examples

Postby mike80 » Tue Aug 05, 2008 4:14 am

Dear Tom,

I tried to work with the Tsay textbook examples on state space models. When running the tsayp533.prg example, for instance, it stops and I get the message "This Instruction Does Not Have An Option VAR". So, it must have to do with the "var=concentrate" instruction in the dlm command. My RATS version is 6.30. Is this instruction not implemented in this version although it is already included in the pre Version 7.0 file of the textbook examples? Thanks!
mike80
 
Posts: 3
Joined: Mon Aug 04, 2008 8:42 am

Re: Tsay textbook examples

Postby TomDoan » Tue Sep 02, 2008 9:04 am

mike80 wrote:I tried to work with the Tsay textbook examples on state space models. When running the tsayp533.prg example, for instance, it stops and I get the message "This Instruction Does Not Have An Option VAR". So, it must have to do with the "var=concentrate" instruction in the dlm command. My RATS version is 6.30. Is this instruction not implemented in this version although it is already included in the pre Version 7.0 file of the textbook examples? Thanks!


VAR=CONCENTRATE was added with version 6.35, when we did quite a bit of work with DLM for the Durbin-Koopman and West-Harrison books. For versions <6.35, you would replace it with the SCALE option.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to State Space Models/DSGE

Who is online

Users browsing this forum: Google [Bot] and 1 guest