Learn R Programming

poliscidata (version 2.3.0)

AdjR2: Calculates adjusted R-Squared statistic

Description

Calculates adjusted R-Squared statistic based on user-defined inputs. This function can be used after estimating a model that does not report adjusted R-Squared statistic. For svyglm model fit statistics, see fit.svyglm function documentation.

Usage

AdjR2(tdf, null.dev, resid.dev, k)

Arguments

tdf

The total degrees of freedom

null.dev

The null deviance or total sum of squares

resid.dev

The residual deviance or error sum of squares

k

The number of parameters used (to reduce deviance)

Value

Returns an adjusted R-Squared statistic, a numeric value between 0 and 1

Examples

Run this code
# NOT RUN {
   AdjR2(200, 1500, 1100, 5)
   
   AdjR2(tdf=200, null.dev=1500, resid.dev=1100, k=5)
# }

Run the code above in your browser using DataLab