Description Usage Arguments Details Value See Also Examples
View source: R/helper-functions.R
gibbs_mlr() is used to fit a Bayesian linear regression model using
Gibbs sampling.
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | 
formula | 
 An object of class   | 
data | 
 An optional data frame containing the variables in the model.  | 
m | 
 The number of iterations to run the Gibbs sampler (default:   | 
burn | 
 The number of iterations to discard as the burn-in
period (default:   | 
thin | 
 The period of iterations to keep after the burn-in
period (default:   | 
mu0 | 
 An optional p x 1 mean vector for the prior on the regression coefficients. See 'Details'.  | 
sigma0 | 
 A p x p variance-covariance matrix for the prior on the regression coefficients. See 'Details'.  | 
a0 | 
 The shape parameter for the prior on sigma2 (default:   | 
b0 | 
 The scale parameter for the prior on sigma2 (default:   | 
eta_start | 
 A p x 1 vector of starting values for the regression coefficients.  | 
verbose | 
 Should parameter draws be output during sampling? (default:
  | 
display_progress | 
 Show progress bar? (default:   | 
For mu0, by default, we use a vector of p 0s for p
regression coefficients.
For sigma0, by default, we use a p x p identity matrix.
An object of class Mlr.
Other Gibbs sampler: 
gibbs_logistic(),
gibbs_sldax()
1 2  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.