Learn R Programming

MDMA (version 2.0.0)

coefsLogReg: Coefficients for logistic regression analysis

Description

Show odds ratios and their confidence intervals for logistic regression parameter estimates.

[Stable]

Usage

coefsLogReg(model, confint = TRUE, level = 0.95)

Value

coefsLogReg returns the same table as summary(object)$coefficients, with the addition of the coefficients' odds ratios and their confidence intervals.

Arguments

model

object of class glm, with family parameter set to binomial.

confint

indicates whether a confidence interval for the odds ratio should be returned.

level

the confidence level required.

Author

Mathijs Deen

Examples

Run this code
glm(formula = am ~  disp, family = binomial, data = mtcars) |>
 coefsLogReg()

Run the code above in your browser using DataLab