-
Notifications
You must be signed in to change notification settings - Fork 4
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
Multinomial logistic regression pull request #17
Conversation
…of weak and global null for multinomial regression.
…implemented fisher scoring
This is looking great, @svteichman ! Can you tell me why the following doesn't give me a p-value?
Thanks so much! (Update: I just added this as an test that currently fails -- thought it'd be more helpful) |
This eg may shed some light...
And when it runs, why is the test stat always 6...? |
The p-value is NA when the inverse of the matrix used in the generalized score test stat is computationally singular, so it looks like it's hitting a try-catch block, muting the error from |
Hmmmmm... do you think it should return a warning? Silently failing isn't good... Are we sure that matrix is truly singular in this case? (intuitively this wouldn't be too surprising since it is noiseless...) Do you think Firth regularization fix singularity issues? It's not good to have a test that just sometimes can't be computed, unless we can really clearly characterize why... |
Yes, I'll have it report the matrix inverse error as a warning. I'll look into whether the Firth penalty will fix singularity issues. |
I checked your example and the matrix |
…'t being used, rename `multinom_log_lik_alternative()` to be `multinom_log_lik()`)
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
R/get_augmentations.R
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should multinomial be included in the function title? Could be good as we plan to expand the package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(this may apply to other functions as well)
This is an edited version of PR #10. I couldn't figure out how to push directly to that PR, so I'm creating a new one here that takes the code from PR #10 from @shirmath and updates based on @adw96's comments on PR #10. This implements robust score tests for multinomial logistic regression, without a Firth penalty.