View source: R/component_samplers.R
| sampleBTF_reg | R Documentation |
Compute one draw of the T x p state variable beta in a DLM using back-band substitution methods.
This model is equivalent to the Bayesian trend filtering (BTF) model applied to p
dynamic regression coefficients corresponding to the design matrix X,
assuming appropriate (shrinkage/sparsity) priors for the evolution errors.
sampleBTF_reg(y, X, obs_sigma_t2, evol_sigma_t2, XtX, D = 1, chol0 = NULL)
y |
the |
X |
the |
obs_sigma_t2 |
the |
evol_sigma_t2 |
the |
XtX |
the |
D |
the degree of differencing (one or two) |
chol0 |
(optional) the |
T x p matrix of simulated dynamic regression coefficients beta
Missing entries (NAs) are not permitted in y. Imputation schemes are available.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.