merliseclyde / BAS

BAS R package https://merliseclyde.github.io/BAS/
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

Mixed models #14

Open lindeloev opened 6 years ago

lindeloev commented 6 years ago

BAS makes using well-established prior types a breeze. Thanks for that!

I would very much like to see BAS.lm and BAS.glm extended to mixed models, i.e. models with random effects. This would pave the road for Bayesian (G)LMMs in JASP where this has been requested for a while: https://github.com/jasp-stats/jasp-desktop/issues/1846 and https://github.com/jasp-stats/jasp-desktop/issues/1103.

merliseclyde commented 6 years ago

@lindeloev do you have a particular syntax or form for representing random effects? i.e. it would be helpful to piggy-back off of other package syntax for representing random effects. The independent representation in mgcv should be relatively easy to implement, but more general covariance structures need additional thought.

lindeloev commented 6 years ago

@merliseclyde The lme4 syntax is widespread so should ease the adoption for many. So for example:

height ~ time * gender + (1 + time | id)

It is also used in brms which is strongly gaining popularity and has shown that this framework is scalable to specifying missing data imputation, censoring, etc.. In addition, specifying the random effect structure in the same formula that specifies the fixed effects require a lot less syntax than having a separate random argument as mgcv and BayesFactor do.

TarandeepKang commented 4 years ago

Hi Dr Clyde,

I'm just wondering if you've been able to make any progress on including mixed models in your package? I agree with Jonas above, thatyou've been able to make any progress on including mixed models in your package? I agree with Jonas above, that this type of analysis has grown inutility in the last few years. Likewise, the lme4 style of syntax is certainly the most widespread, and is likely to represent the fewest barriers in encouraging users to adopt these types of models and use them from your package. I am happy to help out in any way that would be useful to you.

Whirly123 commented 1 year ago

Wanted to check in on whether this is still on the road-map. There isn't anything out there for "default" bayes factors for mixed-model logistic regressions.