Learn R Programming

LOGIT (version 1.3)

toOR: Display logistic coefficient table as odds ratios and associated statistics.

Description

Following the glm command, toOR() displays a table of odds ratios and related statistics including exponentiated model confidence intervals.

Usage

toOR(object)

Arguments

object
name of the fitted glm function model

Value

list

Format

object
The only argument is the name of the fitted glm function model
value
or
odds ratio of predictor
delta
Model standard error using delta method
zscore
z-statistic
pvalue
probability-value based on normal distribution
exp.loci
Exponentialed lower model confidence interval
exp.upci
Expontiated upper model confidence interval

Details

toOR is a post-estimation function, following the use of glm().

References

Hilbe, Joseph M. (2015), Practical Guide to Logistic Regression, Chapman & Hall/CRC.

See Also

glm

Examples

Run this code
library(MASS)
 library(LOGIT)
 data(medpar)
 mylogit <- glm(died ~ los + white + hmo, family=binomial, data=medpar)
 summary(mylogit)
 toOR(mylogit)

Run the code above in your browser using DataLab