Test based Bayes Factors for BMA Models
Creates an object representing the prior distribution on coefficients for BAS that corresponds to the test-based Bayes Factors.
testBF.prior(g)
g |
a scalar used in the covariance of Zellner's g-prior, Cov(beta) = sigma^2 g (X'X)^- |
Creates a prior object structure used for BAS in 'bas.glm'.
returns an object of class "prior", with the family and hyerparameters.
Merlise Clyde
testBF.prior(100) library(MASS) data(Pima.tr) # use g = n bas.glm(type ~ ., data = Pima.tr, family = binomial(), betaprior = testBF.prior(nrow(Pima.tr)), modelprior = uniform(), method = "BAS" )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.