Pseudo-R-squared explained

Pseudo-R-squared values are used when the outcome variable is nominal or ordinal such that the coefficient of determination 2 cannot be applied as a measure for goodness of fit and when a likelihood function is used to fit a model.

In linear regression, the squared multiple correlation, 2 is used to assess goodness of fit as it represents the proportion of variance in the criterion that is explained by the predictors.[1] In logistic regression analysis, there is no agreed upon analogous measure, but there are several competing measures each with limitations.[1] [2]

Four of the most commonly used indices and one less commonly used one are examined in this article:

2L by Cohen

2L is given by Cohen:[1]

2
R
L

=

Dnull-Dfitted
Dnull

.

This is the most analogous index to the squared multiple correlations in linear regression.[3] It represents the proportional reduction in the deviance wherein the deviance is treated as a measure of variation analogous but not identical to the variance in linear regression analysis.[3] One limitation of the likelihood ratio 2 is that it is not monotonically related to the odds ratio,[1] meaning that it does not necessarily increase as the odds ratio increases and does not necessarily decrease as the odds ratio decreases.

2CS by Cox and Snell

2CS is an alternative index of goodness of fit related to the 2 value from linear regression.[2] It is given by:

2
\begin{align} R
CS

&=1-\left(

L0
LM

\right)2/n\\[5pt] &=1-\exp\left(

2
n

(ln(L0)-ln(LM))\right) \end{align}

where and are the likelihoods for the model being fitted and the null model, respectively. The Cox and Snell index corresponds to the standard 2 in case of a linear model with normal error. In certain situations, 2CS may be problematic as its maximum value is

1-

2/n
L
0
. For example, for logistic regression, the upper bound is
2
R
CS\leq0.75
for a symmetric marginal distribution of events and decreases further for an asymmetric distribution of events.

2N by Nagelkerke

2N, proposed by Nico Nagelkerke in a highly cited Biometrika paper, provides a correction to the Cox and Snell 2 so that the maximum value is equal to 1. Nevertheless, the Cox and Snell and likelihood ratio 2s show greater agreement with each other than either does with the Nagelkerke 2.[1] Of course, this might not be the case for values exceeding 0.75 as the Cox and Snell index is capped at this value. The likelihood ratio 2 is often preferred to the alternatives as it is most analogous to 2 in linear regression, is independent of the base rate (both Cox and Snell and Nagelkerke 2s increase as the proportion of cases increase from 0 to 0.5) and varies between 0 and 1.

2 by McFadden

The pseudo 2 by McFadden (sometimes called likelihood ratio index[4]) is defined as

2
R
McF

=1-

ln(LM)
ln(L0)

,

and is preferred over 2 by Allison.[2] The two expressions 2 and 2 are then related respectively by,

\begin{matrix}

2
R
CS

=1-

2
2(R
McF)
n
\left(\dfrac{1}{L
0}\right)

\[1.5em]

2
R
McF

=-\dfrac{n}{2}\dfrac{ln(1-

2
R
CS

)}{lnL0}\end{matrix}

2 by Tjur

Allison[2] prefers 2 which is a relatively new measure developed by Tjur.[5] It can be calculated in two steps:

  1. For each level of the dependent variable, find the mean of the predicted probabilities of an event.
  2. Take the absolute value of the difference between these means

Interpretation

A word of caution is in order when interpreting pseudo-2 statistics. The reason these indices of fit are referred to as pseudo 2 is that they do not represent the proportionate reduction in error as the 2 in linear regression does.[1] Linear regression assumes homoscedasticity, that the error variance is the same for all values of the criterion. Logistic regression will always be heteroscedastic – the error variances differ for each value of the predicted score. For each value of the predicted score there would be a different value of the proportionate reduction in error. Therefore, it is inappropriate to think of 2 as a proportionate reduction in error in a universal sense in logistic regression.[1]

Notes and References

  1. Book: Cohen . Jacob . Patricia . Cohen . Steven G. . West . Leona S. . Aiken . Leona S. Aiken . Applied Multiple Regression/Correlation Analysis for the Behavioral Sciences . 3rd . Routledge . 2002 . 502 . 978-0-8058-2223-6 .
  2. Web site: Measures of fit for logistic regression . Allison . Paul D. . Statistical Horizons LLC and the University of Pennsylvania.
  3. Book: Menard , Scott W. . Applied Logistic Regression . 2nd . SAGE . 2002 . 978-0-7619-2208-7 .
  4. Hardin, J. W., Hilbe, J. M. (2007). Generalized linear models and extensions. USA: Taylor & Francis. Page 60, Google Books
  5. Tjur . Tue . 2009 . Coefficients of determination in logistic regression models . American Statistician . 63 . 4 . 366–372 . 10.1198/tast.2009.08210 . 121927418 .