R2N: Nagelkerke R^2

Description Usage Arguments Details Value References See Also

Description

R2N produces Nagelkerke’s R^2 estimate for the specified LR model. Used in the function LRd

Usage

1
R2N(mod, n)

Arguments

mod

an object of class glm

n

the total sample size

Details

The magnitude of DIF is calculated by subtracting the R^2 estimate of the compact model from the R^2 value of the augmented model. Several pseudo R^2 estimates are available. The Nagelkerke ?R^2 estimate (Nagelkerke, 1991) is used to compute the DIF effect size for the LRd function.

Nagelkerke R^2 is estimated using the equations below:

R^2_CS = 1 - (exp(- LL(M_null)/2 + LL(M_obs)/2))^(2/n)

R^2_MAX = 1 - (exp(-LL(M_null)/2))^(2/n)

R^2_CS/R^2_MAX

Value

a numeric value estimating Nagelkerke R^2

References

Nagelkerke, N. J. D. (1991). A note on a general definition of the coefficient of determination. Biometrika, 78, 691-692.

See Also

LRd for LR DIF


brookiem86/dDIF documentation built on May 13, 2019, 7:50 a.m.