Estimating Variances of Errors in the State Space Framework
Posted: Wed Jun 24, 2009 9:56 am
Hi,
This is a very basic question, but I wanted to make sure that I was interpreting the code correctly. If I would like to estimate a random variance for the error in your state or signal equations, the code is the following:
@state sv1 = sv1(-1) + [var = exp(c(2))]
(and similar for the signal)
However, if you would like to estimate the model with a known variance (say, variance = 1), the code is the following
@signal y = c(1) + sv1 + sv2 + [var = 1]
Is this correct? Thanks!
This is a very basic question, but I wanted to make sure that I was interpreting the code correctly. If I would like to estimate a random variance for the error in your state or signal equations, the code is the following:
@state sv1 = sv1(-1) + [var = exp(c(2))]
(and similar for the signal)
However, if you would like to estimate the model with a known variance (say, variance = 1), the code is the following
@signal y = c(1) + sv1 + sv2 + [var = 1]
Is this correct? Thanks!