summary.bma {BAS} | R Documentation |
summary
and print
methods for Bayesian model
averaging objects created by bas
Bayesian Adaptive Sampling
## S3 method for class 'bma': summary(object, n.models = 5, ...) ## S3 method for class 'bma': print(x, digits = max(3, getOption("digits") - 3), ...)
object |
object of class 'bma' |
x |
object of class 'bma' |
n.models |
optional number specifying the number of best models to display in summary |
digits |
optional number specifying the number of digits to display |
... |
other parameters to be passed to print.default |
The print methods display a view similar to print.lm
.
The summary methods display a view specific to Bayesian model averaging
giving the top highest probability models.
Merlise Clyde clyde@stat.duke.edu
## Not run: library(MASS) data(UScrime) UScrime[,-2] = log(UScrime[,-2]) crime.bic = bas.lm(y ~ ., data=UScrime, n.models=2^15, prior="BIC",initprobs= "eplogp") print(crime.bic) summary(crime.bic) ## End(Not run)