my-server
← Wiki

Pseudo-R-squared

In statistics, pseudo-R-squared values are used when the outcome variable is nominal or ordinal such that the coefficient of determination <sup>2</sup> 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, <sup>2</sup> is used to assess goodness of fit as it represents the proportion of variance in the criterion that is explained by the predictors. In logistic regression analysis, there is no agreed upon analogous measure, but there are several competing measures each with limitations.

Some commonly used indices are examined in this article:

  • Likelihood ratio <sup>2</sup>
  • Unadjusted and adjusted geometric mean squared improvement <sup>2</sup> and <sup>2</sup>
  • Tjur <sup>2</sup>

<sup>2</sup> by McFadden

The pseudo <sup>2</sup> credited to McFadden (sometimes called likelihood ratio index or log-likelihood ratio ) is defined as

:

or expressed using deviance rather than likelihood

:

and is preferred over <sup>2</sup> by Paul D. Allison. The two expressions <sup>2</sup> and <sup>2</sup> are then related respectively by,

:

This is the most analogous index to the squared multiple correlations in linear regression. 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. One limitation of the likelihood ratio <sup>2</sup> is that it is not monotonically related to the odds ratio, meaning that it does not necessarily increase as the odds ratio increases and does not necessarily decrease as the odds ratio decreases.

Adjusted

The adjusted version includes the number of predictors as a penalisation term

:

<sup>2</sup><sub>M</sub> by Cox and Snell

<sup>2</sup><sub>M</sub> is an alternative index of goodness of fit described by Maddala in 1983 attributed to Cox and Snell related to the <sup>2</sup> value from linear regression (sometimes called geometric mean squared improvement per observation ). It is given by:

:

where and are the likelihoods for the model being fitted and the null model, respectively, denotes the natural logarithm, and is the number of observations. is the model with just an intercept. The Cox and Snell index corresponds to the standard <sup>2</sup> in case of a linear model with normal error. In certain situations, <sup>2</sup><sub>M</sub> may be problematic as its maximum value is which means it never takes the value of one. For example, for logistic regression, the upper bound is for a symmetric marginal distribution of events and decreases further for an asymmetric distribution of events.

Adjusted <sup>2</sup><sub>M</sub> by Nagelkerke

Nico Nagelkerke in a highly cited Biometrika paper, provides a correction to the Cox and Snell <sup>2</sup> so that the maximum value is equal to 1. This correction is done by dividing <sub>M</sub> by its upper bound.

:

Nevertheless, the Cox and Snell and likelihood ratio <sup>2</sup>s show greater agreement with each other than either does with the adjusted Nagelkerke <sup>2</sup>. 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 <sup>2</sup> is often preferred to the alternatives as it is most analogous to <sup>2</sup> in linear regression, is independent of the base rate (both Cox and Snell and Nagelkerke <sup>2</sup>s increase as the proportion of cases increase from 0 to 0.5) and varies between 0 and 1.

<sup>2</sup> by Tjur

Tjur proposed an alternative measure of <sup>2</sup>, which is 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

This quantity is not an per se, however Tjur shows how it is related to usual metrics.

Example

This displays R output from calculating pseudo-r-squared values using the "pscl" package by Simon Jackman. The pseudo-R-squared calculated using the formule named for McFadden is labelled “McFadden”. Next to this, the pseudo-r-squared by Cox and Snell is labelled “r2ML” and this type of pseudo-R-squared By Cox and Snell is sometimes simply called “ML”. The last value listed, labelled “r2CU” is the pseudo-r-squared by Nagelkerke and is the same as the pseudo-r-squared by Cragg and Uhler.

Interpretation

A word of caution is in order when interpreting pseudo-<sup>2</sup> statistics. The reason these indices of fit are referred to as pseudo <sup>2</sup> is that they do not represent the proportionate reduction in error as the <sup>2</sup> in linear regression does. 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 <sup>2</sup> as a proportionate reduction in error in a universal sense in logistic regression.

See also

References