blrmsummary: Summary Tables for Binomial Logistic Regressions

Description Usage Arguments Examples

View source: R/blmsummary.r

Description

This function produces summary tables for fixed-effects binomial logistic regressions by extracting the relevent information from a glm and an lrm object.

Usage

1
blrmsummary(x, a, accuracy)

Arguments

x

A glm object of family "binomial".

a

A lrm object.

accuracy

The accuracy of the model predictions.

Examples

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)

MartinSchweinberger/coedlstatzr documentation built on Nov. 27, 2019, 6:16 a.m.