|
8 | 8 | #' @param ... Currently not used. |
9 | 9 | #' |
10 | 10 | #' @details |
11 | | -#' This index was proposed by *Cox and Snell (1989, pp. 208-9)* and, |
12 | | -#' apparently independently, by *Magee (1990)*; but had been suggested |
13 | | -#' earlier for binary response models by *Maddala (1983)*. However, this |
14 | | -#' index achieves a maximum of less than 1 for discrete models (i.e. models |
15 | | -#' whose likelihood is a product of probabilities) which have a maximum of 1, |
16 | | -#' instead of densities, which can become infinite *(Nagelkerke, 1991)*. |
| 11 | +#' This index was proposed by *Cox and Snell (1989, pp. 208-9)* and, apparently |
| 12 | +#' independently, by *Magee (1990)*; but had been suggested earlier for binary |
| 13 | +#' response models by *Maddala (1983)*. However, this index achieves a maximum |
| 14 | +#' of less than 1 for discrete models (i.e. models whose likelihood is a product |
| 15 | +#' of probabilities) which have a maximum of 1, instead of densities, which can |
| 16 | +#' become infinite *(Nagelkerke, 1991)*. |
17 | 17 | #' |
18 | 18 | #' @return A named vector with the R2 value. |
19 | 19 | #' |
|
24 | 24 | #' @references |
25 | 25 | #' - Cox, D. R., Snell, E. J. (1989). Analysis of binary data (Vol. 32). |
26 | 26 | #' Monographs on Statistics and Applied Probability. |
27 | | -#' - Magee, L. (1990). R 2 measures based on Wald and likelihood ratio |
28 | | -#' joint significance tests. The American Statistician, 44(3), 250-253. |
| 27 | +#' - Magee, L. (1990). R 2 measures based on Wald and likelihood ratio joint |
| 28 | +#' significance tests. The American Statistician, 44(3), 250-253. |
29 | 29 | #' - Maddala, G. S. (1986). Limited-dependent and qualitative variables in |
30 | 30 | #' econometrics (No. 3). Cambridge university press. |
31 | | -#' - Nagelkerke, N. J. (1991). A note on a general definition of the |
32 | | -#' coefficient of determination. Biometrika, 78(3), 691-692. |
| 31 | +#' - Nagelkerke, N. J. (1991). A note on a general definition of the coefficient |
| 32 | +#' of determination. Biometrika, 78(3), 691-692. |
33 | 33 | #' |
34 | 34 | #' @export |
35 | 35 | r2_coxsnell <- function(model, ...) { |
|
0 commit comments