Draws from the posterior of parameters of a normal model with normal inverse gamma prior.
.postNIG(Y, X, betaLast, betaDistr, sigmaDistr)
A list with a draws for beta and the innovation variance.
A Tn x 1
vector with the dependent variable.
A Tn x k
matrix with the k
explanatory variables.
A k x 1
vector containing the last draw.
A 4 x k
matrix with prior distribution and box constraints for
the parameters of each variable. In each column, the first two entries contain the
prior hyperparameters and the last two entries the upper and lower bound.
A 1 x k
matrix with prior distribution and box constraints for
the innovation variance. The first two entries contain the prior hyperparameters and
the last two entries the upper and lower bound.
Draws from the posterior are obtained by conjugacy of the Normal-Inverse-Gamma distribution.