Learn R Programming

poliscidata (version 2.3.0)

logregR2: Logistic regression model statistics

Description

Logistic regression model statistics

Usage

logregR2(model, digits = 3)

Arguments

model

An estimated logistic regression model

digits

Number of digits to be displayed after decimal points

Value

Returns list of statistics about model (a "LogRegR2" class object)

Examples

Run this code
# NOT RUN {
   library(poliscidata)
   obama_state_model <- glm(obama_win12 ~ secularism + gunlaw_rank, data=states, family=binomial)
   summary(obama_state_model)
   logregR2(obama_state_model)
   
   obama_vote_model <- svyglm(obama_vote ~ ft_dem, design=nesD, family="quasibinomial")
   summary(obama_vote_model)
   logregR2(obama_vote_model)
# }

Run the code above in your browser using DataLab