Calculate the location and scale parameters for the time-varying coefficients given all the observations. West, M. & Harrison, J., 1997. Bayesian Forecasting and Dynamic Models. Springer New York.
dlm.retro(mt, CSt, RSt, nt, dt)
the vector or matrix of the posterior mean (location parameter), dim = p x T
,
where p
is the number of thetas (at any time t
) and T
is the number of time points
the posterior scale matrix with dim = p x p x T
(unscaled by the observation variance)
the prior scale matrix with dim = p x p x T
(unscaled by the observation variance)
vector of the updated hyperparameters for the precision phi
with length T
vector of the updated hyperparameters for the precision phi
with length T
smt = the location parameter of the retrospective distribution with dimension p x T
sCt = the scale matrix of the retrospective distribution with dimension p x p x T