You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
which gives the following prior model probabilities:
getPriorProbsPerModel(fit1) # constrained model, always includes AgreeablenessmodelpriorProb1Agreeableness0.0833# <- Least complex model, low prob3Openness+Agreeableness0.08334Extraversion+Agreeableness0.08332Extraversion+Openness+Agreeableness0.25# <- most complex model, highest prob
getPriorProbsPerModel(fit2) # unconstrained model, as expectedmodelpriorProb1Nullmodel0.253Openness0.08335Extraversion0.08337Agreeableness0.08332Openness+Agreeableness0.08334Extraversion+Openness0.08336Extraversion+Agreeableness0.08338Extraversion+Openness+Agreeableness0.25
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:
tb<- getPriorProbsPerModel(fit1)
tb[, 2] <-tb[, 2] / sum(tb[, 2])
tbmodelpriorProb1Agreeableness0.16666673Openness+Agreeableness0.16666674Extraversion+Agreeableness0.16666672Extraversion+Openness+Agreeableness0.5000000# <- favors the most complex model
However, this may lead to biased inference as there is a strong prior preference for the most complex model!
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:
OS: OSX, Windows, Ubuntu 18.04
R Versions 3.5.2 and 3.5.3
If anything is unclear, please let me know!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: