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 upOdd behavior Beta-binomial model prior with include.always #40
Comments
|
Merged in BAS version 1.5.4 |
Describe the bug
This is more a theoretical issue rather than a programming bug. Prior model probabilities of a beta-binomial model prior are surprising and perhaps incorrect when always including some predictors.
To Reproduce
A small example below:
which gives the following prior model probabilities:
So it seems that BAS computes the prior probabilities as if there is no constraint and then assigns 0 prior probability to models that do not include Agreeableness. If the prior model probabilities of the constrained model are normalized we get:
However, this may lead to biased inference as there is a strong prior preference for the most complex model!
Expected behavior
I'd expect these prior model probabilties:
Effectively, because one predictor included in all models, I would expect that the prior model probabilities are computed as if the model space contained one predictor less.
This example shows what I would expect when always including one predictor but naturally this generalizes to always including l out of k predictors.
Desktop:
If anything is unclear, please let me know!