orci: Translate logistic regression coefficients into odds ratios

Description Usage Arguments Value Examples

View source: R/orci.r

Description

Generates odds-ratios based on logistic regression model coefficients

Usage

1
orci(model, digits = 3)

Arguments

model

An estimated logistic regression model

digits

Number of digits after decimal to display

Value

Returns odds rations and confidence intervals in columns (a matrix class object)

Examples

1
2
3
4
5
6
7
8
   library(poliscidata)
   obama_state_model <- glm(obama_win12 ~ secularism + gunlaw_rank, data=states, family=binomial)
   summary(obama_state_model)
   orci(obama_state_model)
   
   obama_vote_model <- svyglm(obama_vote ~ ft_dem, design=nesD, family="quasibinomial")
   summary(obama_vote_model)
   orci(obama_vote_model)

poliscidata documentation built on July 8, 2020, 6:23 p.m.