- Isn’t the
forecast
option of the estimation command already what you are looking for? - For building the transition matrix, you are on the right track. See [How to build transition and measurement equations)
- For retrieving the smoothed states: they are stored in
oo_.SmoothedVariables
. Alternatively, you may be able to usesmoother2histval
(see the manual).