Dear all:
I built a very simple DSGE model with 3 equation ,and transform the model to a LRE model . I solve the LRE model with BK method and then I got a state space model just as x(t)=A*x(t-1)+B*z(t). I want to do the bayesian estimate . However as I know , before the bayesian estimate, we must get the maximum likelihood function of the state-space. My question is that how can I get the maximum likelihood function of the state-space by using the kalman fliter? Can I find the code in dynare?
I know dynare can do it with just a command and I want to know more details about it .thank you .