AdjR2: Calculates adjusted R-Squared statistic

Description Usage Arguments Value Examples

View source: R/AdjR2.r

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

1
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

1
2
3
   AdjR2(200, 1500, 1100, 5)
   
   AdjR2(tdf=200, null.dev=1500, resid.dev=1100, k=5)

Example output

[1] 0.2478632
[1] 0.2478632

poliscidata documentation built on July 8, 2020, 6:23 p.m.