-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add linear model statistic with covariate adjustment #2043
Conversation
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.
LGTM! Left a few suggestions, but I don't think any of them are blockers.
jetstream/tests/test_statistics.py
Outdated
assert rel_results.lower > rel_results_unadj.lower | ||
assert rel_results.upper < rel_results_unadj.upper | ||
|
||
def test_linear_model_mean_covariate_bad_period(self): |
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.
Could test all of the bad ones with @pytest.mark.parametrize
, and then add a test of the good ones too the same way.
Co-authored-by: Mike Williams <102263964+mikewilli@users.noreply.github.com>
All requested changes made, just waiting on the last test run to finish. Going to add to the merge queue. |
This document implements the solution from this proposal.