Summaries of Bayesian model averaging objects
summary
and print
methods for Bayesian model averaging objects.
## S3 method for class 'bicreg' summary(object, n.models = 5, digits = max(3, getOption("digits") - 3), conditional = FALSE, display.dropped = FALSE, ...) ## S3 method for class 'bic.glm' summary(object, n.models = 5, digits = max(3, getOption("digits") - 3), conditional = FALSE, display.dropped = FALSE, ...) ## S3 method for class 'bic.surv' summary(object, n.models = 5, digits = max(3, getOption("digits") - 3), conditional = FALSE, display.dropped = FALSE, ...) ## S3 method for class 'glib' summary(object, n.models = 5, digits = max(3, getOption("digits") - 3), conditional = FALSE, index.phi=1, ...) ## S3 method for class 'mc3' summary(object, n.models = 5, digits = max(3, getOption("digits") - 3), ...) ## S3 method for class 'bicreg' print(x, digits = max(3, getOption("digits") - 3), ...) ## S3 method for class 'bic.glm' print(x, digits = max(3, getOption("digits") - 3), ...) ## S3 method for class 'bic.surv' print(x, digits = max(3, getOption("digits") - 3), ...) ## S3 method for class 'mc3' print(x, digits = max(3, getOption("digits") - 3), n.models = nrow(x$variables), ...)
object |
object of type 'bicreg', 'bic.glm', 'bic.surv', 'glib' or 'mc3' |
x |
object of type 'bicreg', 'bic.glm', 'bic.surv', 'glib' or 'mc3' |
n.models |
optional number specifying the number of models to display in summary |
digits |
optional number specifying the number of digits to display |
conditional |
optional logical value specifying whether to display conditional expectation and standard deviation |
display.dropped |
optional logical value specifying whether to display the names of any variables dropped before model averaging takes place |
index.phi |
optional number specifying which value of phi to use if multiple values of phi were run. Applies to |
... |
other parameters to be passed to |
The print methods display a view similar to print.lm
or print.glm
.
The summary methods display a view specific to model averaging.
The summary function does not create a summary object (unlike summary.lm
or summary.glm
), instead it directly prints the summary. Note that no calculations are done to create the summary.
Ian Painter ian.painter@AT@gmail.com
# logistic regression library("MASS") data(birthwt) y<- birthwt$lo x<- data.frame(birthwt[,-1]) x$race<- as.factor(x$race) x$ht<- (x$ht>=1)+0 x<- x[,-9] x$smoke <- as.factor(x$smoke) x$ptl<- as.factor(x$ptl) x$ht <- as.factor(x$ht) x$ui <- as.factor(x$ui) glm.out1<- bic.glm(x, y, OR = 20, glm.family="binomial", factor.type=TRUE) summary(glm.out1, conditional = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.