Description Usage Arguments Value
Runs the MCMC for the dynamic function-on-scalars regression model based on an reduced-rank expansion. Here, we assume the factor regression has AR(1) errors. This particular sampler loops over the k=1,...,K factors, so the sampler is O(T*K*p^3) instead of O(T*(K*p)^3). For this variation, we assume normal-inverse-gamma priors on the innovations.
1 2 3 4 |
Y |
the |
tau |
the |
X |
the |
K |
the number of factors; if NULL, use SVD-based proportion of variability explained |
use_dynamic_reg |
logical; if TRUE, regression coefficients are dynamic (with random walk models), otherwise independent |
nsave |
number of MCMC iterations to record |
nburn |
number of MCMC iterations to discard (burin-in) |
nskip |
number of MCMC iterations to skip between saving iterations, i.e., save every (nskip + 1)th draw |
mcmc_params |
named list of parameters for which we store the MCMC output; must be one or more of
|
X_Tp1 |
the |
use_obs_SV |
logical; when TRUE, include a stochastic volatility model for the observation error variance |
includeBasisInnovation |
logical; when TRUE, include an iid basis coefficient term for residual correlation (i.e., the idiosyncratic error term for a factor model on the full basis matrix) |
Con_mat |
a |
A named list of the nsave
MCMC samples for the parameters named in mcmc_params
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.