Learn R Programming

RCPA3 (version 1.2.1)

logregR2: 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)

Value

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

Arguments

model

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

digits

Number of digits to be displayed after decimal points

Examples

Run this code
   library(RCPA3)
   
   # \donttest{
   logit.model <- logregC(states$battleground2020 ~ states$vep16.turnout)
   logregR2(logit.model)
   # }

Run the code above in your browser using DataLab