Learn R Programming

blm (version 2012.2.4)

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)

Arguments

object
object of class blm or lexpit

Value

  • List of R2 and R2adj.

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