blr_rsq_count: Count R2

View source: R/blr-model-fit-stats.R

blr_rsq_countR Documentation

Count R2

Description

Count r-squared.

Usage

blr_rsq_count(model)

Arguments

model

An object of class glm. Only binary logistic regression models (binomial family with logit link) are supported. Weighted models (any prior weight other than 1) and grouped binomial models (cbind(successes, failures) or proportions) are not supported; the model must be fitted with model = TRUE, y = TRUE.

Value

Count r-squared.

Examples

model <- glm(honcomp ~ female + read + science, data = hsb2,
            family = binomial(link = 'logit'))

blr_rsq_count(model)


blorr documentation built on Nov. 16, 2026, 9:07 a.m.