logitOR: Table of odds ratios and confidence intervals for logit...

Description Usage Arguments Value Author(s) Examples

View source: R/logitOR.R

Description

Table of odds ratios and confidence intervals for logit models

Usage

1
logitOR(fit, intercept = TRUE, level = 0.95)

Arguments

fit

A logit model fit with glm.

intercept

A logical value indicating whether the intercept should be included in the output. Defaults to TRUE. If fit does not include an intercept the intercept argument should be left at the default value of TRUE.

level

The desired confidence level to be passed to confint.glm (MASS).

Value

Odds ratios and confidence intervals for the parameters in fit.

Author(s)

Jonah Gabry <jsg2201@columbia.edu>

Examples

1
2
3
4
5
6
Y <- GSS_2010$realinc;  X <- with(GSS_2010, cbind(age, educ))
Y <- cut(Y, breaks=c(-Inf, median(Y, na.rm = T), Inf),
            labels=c("Low", "High"))
fit <- glm(Y ~ X, family = binomial)
logitOR(fit)
logitOR(fit, intercept = FALSE, level = 0.90)

jgabry/QMSS_package documentation built on May 19, 2019, 7:18 a.m.