Bernoulli {BAS} | R Documentation |
Creates an object representing the prior distribution on models for BAS.
Bernoulli(probs = 0.5)
probs |
a scalar or vector of prior inclusion probabilities. If a scalar, the values is replicated for all variables ans a 1 is added for the intercept. BAS checks to see if the length is equal to the dimension of the parameter vector for the full model and adds a 1 to include the intercept. |
The independent Bernoulli prior distribution is a commonly used prior in BMA, with the Uniform distribution a special case with probs=.5. If all indicator variables have a independent Bernoulli distributions with common probability probs, the distribution on model size binomial(p, probs) distribution.
returns an object of class "prior", with the family and hyperparameters.
Merlise Clyde
Other priors modelpriors:
Bernoulli.heredity()
,
beta.binomial()
,
tr.beta.binomial()
,
tr.poisson()
,
tr.power.prior()
,
uniform()
Bernoulli(.9)