Closed vandenman closed 4 years ago
Merging #41 into master will increase coverage by
0.02%
. The diff coverage is100%
.
@@ 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
Impacted Files | Coverage Δ | |
---|---|---|
src/lm_sampleworep.c | 97.57% <100%> (ø) |
:arrow_up: |
src/model_probabilities.c | 97.61% <100%> (+0.25%) |
:arrow_up: |
src/glm_sampleworep.c | 100% <100%> (ø) |
:arrow_up: |
src/lm_mcmcbas.c | 96.98% <100%> (ø) |
:arrow_up: |
src/lm_deterministic.c | 99.14% <100%> (ø) |
:arrow_up: |
src/glm_deterministic.c | 100% <100%> (ø) |
:arrow_up: |
src/glm_mcmcbas.c | 90.36% <100%> (+0.04%) |
:arrow_up: |
src/glm_mcmc.c | 100% <100%> (ø) |
:arrow_up: |
src/lm_mcmc.c | 97.83% <100%> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update d99b3d3...abb73a6. Read the comment docs.
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_probs
which 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.R
that checks this.I hope this helps, if anything is unclear please let me know. All comments and/ or feedback are welcome!