Compute one draw of the T
state variable mu
in a DLM using back-band substitution methods.
This model is equivalent to the Bayesian trend filtering (BTF) model, assuming appropriate
(shrinkage/sparsity) priors for the evolution errors.
t_sampleBTF(y, obs_sigma_t2, evol_sigma_t2, D = 1, loc_obs)
T x 1
vector of simulated states
the T x 1
vector of time series observations
the T x 1
vector of observation error variances
the T x 1
vector of evolution error variances
the degree of differencing (one or two)
list of the row and column indices to fill in a band-sparse matrix