Priors in SSpace
Posted: Wed Jun 17, 2015 5:37 pm
Hiya
Just ran into what I think is a bug, perhaps not, but here's the case. Upon estimating a SS model programatically, such as
model.append @signal ...
model.append @state S1 ...
model.append @state S2 ... [for all states defined in the model]
model.append @mprior mpriorspec
model.append @vprior vpriorspec
where mpriorspec and vpriorspec are defined before (outside) the above block of code (structure of both priors adequately defined by checking the relevant system matrices), then runs
model.ml
apparently without glitch but upon calling
model.makestates(opts)
it crashes by saying "estimates are not valid". Two things here: if the priors were improperly specified to begin with (badly conformed, for example) with, the estimation (ML) step would crash. It seemingly does not as I can see by the status bar progress, when in fact it has blown-up. Otherwise, the makestates option would run without a problem. The question here is why it seemingly iterates through the ML step without throwing a hiss. I have narrowed the problem to the VPRIOR matrix.
Did a run where I removed my VPRIOR (assumed it diffuse) and the model converges. Checked the structure of the resulting VCOV matrix (which has a block structure, as I'm modeling SUTSE) to my specified VPRIOR and there are no differences apart from the fact that I set-up the VPRIOR as a diagonal matrix.
Any ideas? It might be that eviews cannot handle a SUTSE properly in terms of variances priors handling (estimates fine otherwise) but in principle I see no reason why not.
Thanks a lot.
Luc
Just ran into what I think is a bug, perhaps not, but here's the case. Upon estimating a SS model programatically, such as
model.append @signal ...
model.append @state S1 ...
model.append @state S2 ... [for all states defined in the model]
model.append @mprior mpriorspec
model.append @vprior vpriorspec
where mpriorspec and vpriorspec are defined before (outside) the above block of code (structure of both priors adequately defined by checking the relevant system matrices), then runs
model.ml
apparently without glitch but upon calling
model.makestates(opts)
it crashes by saying "estimates are not valid". Two things here: if the priors were improperly specified to begin with (badly conformed, for example) with, the estimation (ML) step would crash. It seemingly does not as I can see by the status bar progress, when in fact it has blown-up. Otherwise, the makestates option would run without a problem. The question here is why it seemingly iterates through the ML step without throwing a hiss. I have narrowed the problem to the VPRIOR matrix.
Did a run where I removed my VPRIOR (assumed it diffuse) and the model converges. Checked the structure of the resulting VCOV matrix (which has a block structure, as I'm modeling SUTSE) to my specified VPRIOR and there are no differences apart from the fact that I set-up the VPRIOR as a diagonal matrix.
Any ideas? It might be that eviews cannot handle a SUTSE properly in terms of variances priors handling (estimates fine otherwise) but in principle I see no reason why not.
Thanks a lot.
Luc