Learn R Programming

blm (version 2022.0.0.1)

Rsquared: Compute R-squared measures of model fit for blm and lexpit objects.

Description

Returns McFadden's unadjusted and adjusted R-squared measures for models of a binary outcome.

Usage

Rsquared(object)

Value

List of R2 and R2adj.

Arguments

object

object of class blm or lexpit

Author

Stephanie Kovalchik s.a.kovalchik@gmail.com

Examples

Run this code

data(ccdata)

fit <- blm(y~female+packyear,data = ccdata,
			weight = ccdata$w, strata = ccdata$strata)

Rsquared(fit)

Run the code above in your browser using DataLab