What about them? You can have priors for regression coefficients of factor variables, which are continuous as @jsocolar explains here: How to do empirical Bayes on factor variables? - #3 by jsocolar. But you can’t have negative binomial prior because that is not continuous. Formulas like ´y ~ age + gender` are ambiguous because they do not show the parameters but whatever model you have in brms, all parameters are going to be continuous. If you really want to have a prior for discrete/categorical unknowns and perform inference on them then it is not going to be as straightforward as just fitting a bmrs model: 7 Latent Discrete Parameters | Stan User’s Guide
jtimonen
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to set priors for discrete factor variables? | 1 | 693 | October 21, 2021 | |
| How to do empirical Bayes on factor variables? | 2 | 918 | October 27, 2021 | |
| Setting simple binomial prior | 12 | 222 | January 31, 2025 | |
| How to translate my prior belief into a prior | 4 | 676 | July 4, 2018 | |
| Can I specify a poisson prior somehow? | 2 | 743 | October 26, 2021 |