Creates an object representing the prior distribution on models for BAS using a truncated Distribution on the Model Size where the probability of gamma proportional to p^-kappa |gamma| where gamma is the vector of model indicators and |gamma| is the model size.
See also
Other priors modelpriors:
Bernoulli(),
Bernoulli.heredity(),
beta.binomial(),
tr.beta.binomial(),
tr.poisson(),
uniform()
Examples
tr.power.prior(2, 8)
#> $family
#> [1] "Trunc-Power-Prior"
#>
#> $hyper.parameters
#> [1] 2 8
#>
#> 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.power.prior(2, 8),
initprobs = "eplogp"
)
