Skip to content

Commit

Permalink
Merge 681c171 into 0a91ca1
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jan 13, 2019
2 parents 0a91ca1 + 681c171 commit b9fddfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/statmodels.jl
Expand Up @@ -231,7 +231,7 @@ function r2(obj::StatisticalModel, variant::Symbol)
elseif variant == :CoxSnell
1 - exp(2 * (ll0 - ll) / nobs(obj))
elseif variant == :Nagelkerke
(1 - exp(2 * (ll0 - ll) / obs(obj))) / (1 - exp(2 * ll0 / nobs(obj)))
(1 - exp(2 * (ll0 - ll) / nobs(obj))) / (1 - exp(2 * ll0 / nobs(obj)))
else
error("variant must be one of :McFadden, :CoxSnell or :Nagelkerke")
end
Expand Down

0 comments on commit b9fddfd

Please sign in to comment.