Creates an object representing the prior distribution on models for BAS using a truncated Beta-Binomial Distribution on the Model Size
Details
The beta-binomial distribution on model size is obtained by assigning each variable inclusion indicator independent Bernoulli distributions with probability w, and then giving w a beta(alpha,beta) distribution. Marginalizing over w leads to the number of included predictors having a beta-binomial distribution. The default hyperparameters lead to a uniform distribution over model size. The Truncated version assigns zero probability to all models of size > trunc.
See also
Other priors modelpriors:
Bernoulli()
,
Bernoulli.heredity()
,
beta.binomial()
,
tr.poisson()
,
tr.power.prior()
,
uniform()
Examples
tr.beta.binomial(1, 10, 5)
#> $family
#> [1] "Trunc-Beta-Binomial"
#>
#> $hyper.parameters
#> [1] 1 10 5
#>
#> attr(,"class")
#> [1] "prior"
library(MASS)
data(UScrime)
UScrime[, -2] <- log(UScrime[, -2])
crime.bic <- bas.lm(y ~ .,
data = UScrime, n.models = 2^15, prior = "BIC",
modelprior = tr.beta.binomial(1, 1, 8),
initprobs = "eplogp"
)