Learn R Programming

poliscidata (version 1.2.0)

AdjR2: Calculates adjusted R-Squared statistic

Description

Calculates adjusted R-Squared Statistic based on user-defined input. Also see svyglm.fit function.

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 Adjusted R-Squared Statistic

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