Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upModify model priors when using include.always #41
Conversation
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
==========================================
+ Coverage 91.56% 91.58% +0.02%
==========================================
Files 54 54
Lines 5771 5787 +16
==========================================
+ Hits 5284 5300 +16
Misses 487 487
Continue to review full report at Codecov.
|
|
Looks good! |
A possible fix for #40.
At the start of an analyses
no_prior_inclusion_is_1(p, probs)counts the number of the initprobs that are 1, denotednoInclusionIs1. This number is passed to all calls tocompute_prior_probswhich reduces the model space and number of predictors bynoInclusionIs1.For example, this PR will change the prior model probabilities to:
whereas the current master branch returns:
I also added a unit test to
test-model-priors.Rthat checks this.I hope this helps, if anything is unclear please let me know. All comments and/ or feedback are welcome!