Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make coxSnell and Nagelkerke computationally more robust #265

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

Kucharssim
Copy link
Member

fixes jasp-stats/jasp-issues#2368

The bug was caused by a relatively large n which resulted in a numerical overflow. Now the core calculation is done on the log scale so it will be more robust.

R/commonglm.R Outdated Show resolved Hide resolved
@vandenman vandenman merged commit 248f4c8 into jasp-stats:master Oct 27, 2023
5 checks passed
@Kucharssim Kucharssim deleted the pseudo-r2-bug branch October 27, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong values of Nagelkerke and Cox and Snell R^2 reported
2 participants