Skip to content

Commit aa8f3fb

Browse files
authored
Fix typo in doc strings for r2 (#33)
* Fix typo in doc strings for r2 Repeat of JuliaStats/StatsBase.jl#732 * fix typo in adjr2 * Bump patch version
1 parent 6017c12 commit aa8f3fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StatsAPI"
22
uuid = "82ae8749-77ed-4fe6-ae5f-f523153014b0"
33
authors = ["Milan Bouchet-Valat <[email protected]"]
4-
version = "1.7.0"
4+
version = "1.7.1"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/statisticalmodel.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Pseudo-coefficient of determination (pseudo R-squared).
233233
234234
For nonlinear models, one of several pseudo R² definitions must be chosen via `variant`.
235235
Supported variants are:
236-
- `:MacFadden` (a.k.a. likelihood ratio index), defined as ``1 - \\log (L)/\\log (L_0)``;
236+
- `:McFadden` (a.k.a. likelihood ratio index), defined as ``1 - \\log (L)/\\log (L_0)``;
237237
- `:CoxSnell`, defined as ``1 - (L_0/L)^{2/n}``;
238238
- `:Nagelkerke`, defined as ``(1 - (L_0/L)^{2/n})/(1 - L_0^{2/n})``.
239239
- `:devianceratio`, defined as ``1 - D/D_0``.
@@ -290,7 +290,7 @@ adjr2(model::StatisticalModel)
290290
291291
Adjusted pseudo-coefficient of determination (adjusted pseudo R-squared).
292292
For nonlinear models, one of the several pseudo R² definitions must be chosen via `variant`.
293-
The only currently supported variants are `:MacFadden`, defined as ``1 - (\\log (L) - k)/\\log (L0)`` and
293+
The only currently supported variants are `:McFadden`, defined as ``1 - (\\log (L) - k)/\\log (L0)`` and
294294
`:devianceratio`, defined as ``1 - (D/(n-k))/(D_0/(n-1))``.
295295
In these formulas, ``L`` is the likelihood of the model, ``L0`` that of the null model
296296
(the model including only the intercept), ``D`` is the deviance of the model,

0 commit comments

Comments
 (0)