logregR2 {RCPA3}R Documentation

Logistic regression model fit statistics

Description

Logistic regression model statistics, reported by logregC with fit.stats=TRUE argument, can be used for both weighted and unweighted logregC models.

Usage

logregR2(model, digits = 3)

Arguments

model

An estimated logistic regression model (a glm or svyglm object)

digits

Number of digits to be displayed after decimal points

Value

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

Examples

   library(RCPA3)
   
   
   logit.model <- logregC(states$battleground2020 ~ states$vep16.turnout)
   logregR2(logit.model)
   

[Package RCPA3 version 1.3.1 Index]