I am looking for some help with estimating Space state model of this form:
$r_{t} = r^{*}_{t} + \pi + \varepsilon_{1}$
$R_{t}= r^{*}_{t} + \alpha + \pi + \varepsilon_{2}$
$r^{*}_{t} = r^{*}_{t-1} + \phi_{1}$
$\alpha_{t} = \mu_{0} + \mu_{1} \alpha_{t-1} + \phi_{2}$
The first two are the observations equations. I am hoping to be able to estimate $r^{*}$ and $\alpha$ from this system of equations. I am currently trying to do this with matlab, but my biggest issue is being able to specify this in a form that is implementable in matlab (or R) . I will be extremely grateful for any suggestions I can get or pointers that may lead me on.