Compute one draw of the T x 1
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, with an additional shrinkage-to-zero prior.
sampleBTF_sparse(
y,
obs_sigma_t2,
evol_sigma_t2,
zero_sigma_t2,
D = 1,
chol0 = NULL
)
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 T x 1
vector of shrink-to-zero variances
the degree of differencing (one or two)
(optional) the m x m
matrix of initial Cholesky factorization;
if NULL, use the Matrix
package for sampling, otherwise use the spam
package