Description Usage Arguments Value Examples
Fits a Bayesian linear regression model with a normal prior on beta and a gamma prior on the precision tau. 'Wide' priors are used by default.
1 2 3 |
data |
A data frame. |
formula |
A formula describing the model fit. Passed to
|
burnin |
Number of burn in iterations. |
iterations |
Number of sampling iterations. |
thin |
Number of thinning iterations. |
beta_prior_mean |
(Optional) Mean vector for the prior on beta. Defaults to zero. |
beta_prior_cov |
(Optional) Covariance matrix for the prior on beta.
Defaults to |
tau_prior_shape |
(Optional) Shape parameter for the prior on tau. Defaults to 0.001. |
tau_prior_rate |
(Optional) Rate parameter for the prior on tau. Defaults to 0.001. |
start_beta |
(Optional) Beta starting vector. Defaults to beta hat, the frequentist estimate. |
An object of class geblm
containing samples from the
posterior distributions of beta and sigma.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.