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

Add linear model statistic with covariate adjustment #2043

Merged
merged 62 commits into from
May 21, 2024
Merged

Conversation

danielkberry
Copy link
Contributor

@danielkberry danielkberry commented May 10, 2024

This document implements the solution from this proposal.

@danielkberry danielkberry marked this pull request as ready for review May 15, 2024 19:07
@danielkberry danielkberry requested a review from mikewilli May 15, 2024 19:23
@danielkberry danielkberry requested a review from mikewilli May 21, 2024 15:33
Copy link
Contributor

@mikewilli mikewilli left a 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/bigquery_client.py Outdated Show resolved Hide resolved
jetstream/bigquery_client.py Outdated Show resolved Hide resolved
jetstream/statistics.py Outdated Show resolved Hide resolved
jetstream/tests/test_statistics.py Outdated Show resolved Hide resolved
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):
Copy link
Contributor

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.

@danielkberry
Copy link
Contributor Author

All requested changes made, just waiting on the last test run to finish. Going to add to the merge queue.

@danielkberry danielkberry enabled auto-merge May 21, 2024 23:18
@danielkberry danielkberry added this pull request to the merge queue May 21, 2024
Merged via the queue into main with commit 7b339d3 May 21, 2024
2 checks passed
@danielkberry danielkberry deleted the linear-models branch May 21, 2024 23:28
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.

2 participants