Draws the parameters in a regression equation with AR errors, if specified.
post_regression(
Y,
X,
beta = NULL,
betaDistr,
sigma,
sigmaDistr,
phi = NULL,
phiDistr = NULL,
indep = TRUE,
const = NULL,
constDistr = NULL
)
A named vector of drawn parameters.
dependent variable
explanatory variable(s)
coefficient vector
prior distribution of coefficient vector
innovation variance
prior distribution of innovation variance
autoregressive coefficient vector
prior distribution of autoregressive coefficient vector
logical, should beta and sigma be independent
constant
prior distribution of constant
See "Chib, Siddhartha. "Bayes regression with autoregressive errors: A Gibbs sampling approach." Journal of econometrics 58.3 (1993): 275-294."