Bayesian regression model with mixture of two scaled inverse chi square as hyperprior distribution.
Performs Gibbs Sampling algorithm for fitting the Bayesian regression model with mixture of two scaled inverse chi square as hyperprior distribution for variance of each regression coefficients.
the vector of response variable of the model.
the degree of freedom hyperparameter(s)
the scale hyperparameter(s)
the number of iterations of Gibbs Sampling algorithm.
the number of 'burn in' in a Gibbs Sampling algorithm.
it is a string which if were defined as “ridge” the function performs Bayesian ridge regression, otherwise, Bayes H model.
For bayesian ridge regression (type == "ridge"), the prior distribution for the error
variance and the hyperprior distribution for variance of the regression coefficients
follows scaled inverse chi square with same hyperparameters
(nu0, s0), respectively.On the other hand, for hierarchical regression
model (type == "bayesH") is assumed that each the regression coefficient has different variance
and each one of them follows a mixture of scaled inverse chi square with hyperparameters
s0) and (
In this case, the prior distribution for error variance also follows scaled inverse
chi square with hyperparameters
s0. NA's in the incidence
matrix are not allowed. All elements of vector
s0 must be greater than zero.
The output is an object of class
BayesH that contains the
posterior distribution of intercept, posterior distribution of variance error,
posterior mean of regression coefficients and posterior mean of predicted values.
Renato Rodrigues Silva, firstname.lastname@example.org
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.