Skip to content

Commit

Permalink
Remove mention of deviance in adjr2 docstring
Browse files Browse the repository at this point in the history
Since #400 we use the log-likelihood.
  • Loading branch information
nalimilan authored Oct 19, 2019
1 parent 752bdf8 commit caa0bb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/statmodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ Adjusted pseudo-coefficient of determination (adjusted pseudo R-squared).
For nonlinear models, one of the several pseudo R² definitions must be chosen via `variant`.
The only currently supported variant is `:MacFadden`, defined as ``1 - (\\log (L) - k)/\\log (L0)``.
In this formula, ``L`` is the likelihood of the model, ``L0`` that of the null model
(the model including only the intercept). These two quantities are taken to be minus half
`deviance` of the corresponding models. ``k`` is the number of consumed degrees of freedom
(the model including only the intercept), and ``k`` is the number of consumed degrees of freedom
of the model (as returned by [`dof`](@ref)).
"""
function adjr2(obj::StatisticalModel, variant::Symbol)
Expand Down

0 comments on commit caa0bb1

Please sign in to comment.