Description Usage Arguments Examples
This function produces summary tables for fixed-effects binomial logistic regressions by extracting the relevent information from a glm and an lrm object.
1 | blrmsummary(x, a, accuracy)
|
x |
A glm object of family "binomial". |
a |
A lrm object. |
accuracy |
The accuracy of the model predictions. |
1 2 3 4 5 6 7 8 9 | ## Not run:
#model.glm = glm(depvar ~ indepvar, data = data, family = binomial)
#model.lrm = lrm(depvar ~ indepvar, data = data, x = T, y = T)
#data$predicted <- predict(model.glm, data)
#caret::confusionMatrix(data$depvar, data$predict)
## inspect accuracy and include its numeric value in the blrmsummary function call
#blrmsummary(model.glm, model.lrm, 80)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.