Skip to content

Commit 179c533

Browse files
authored
Fix typo in doc strings for r2 (#732)
Variant is `:MacFadden` in the docs, but `:McFadden` in the if else branch. Googling / Wikipedia confirms that "McFadden" is correct
1 parent ee4e16d commit 179c533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/statmodels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Pseudo-coefficient of determination (pseudo R-squared).
239239
240240
For nonlinear models, one of several pseudo R² definitions must be chosen via `variant`.
241241
Supported variants are:
242-
- `:MacFadden` (a.k.a. likelihood ratio index), defined as ``1 - \\log (L)/\\log (L_0)``;
242+
- `:McFadden` (a.k.a. likelihood ratio index), defined as ``1 - \\log (L)/\\log (L_0)``;
243243
- `:CoxSnell`, defined as ``1 - (L_0/L)^{2/n}``;
244244
- `:Nagelkerke`, defined as ``(1 - (L_0/L)^{2/n})/(1 - L_0^{2/n})``.
245245
- `:devianceratio`, defined as ``1 - D/D_0``.

0 commit comments

Comments
 (0)