blog/2021/11/08/beta-regression-guide/index #63
Replies: 9 comments 5 replies
-
Hey, this is the best beta distribution post ever! How about this approach for tricking with the (0, 1) bound? Smithson and Verkuilen (2006)
smithson_verkuilen <- function(y) {
n <- length(y)
return((y * (n - 1) + 0.5) / n)
} For my data it "plays" pretty well, but I'm not sure whether should I use this approach: > summary(data$resp)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00000 0.03774 0.17241 0.21562 0.34615 0.94118
> summary(data$resp)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.0003636 0.0380720 0.1726520 0.2158268 0.3462657 0.9408556 |
Beta Was this translation helpful? Give feedback.
-
Nice presentation. How would you interpret the Group level effects in the random effects beta regression/zero-inflated beta regression model for both the mean and the precision parameters? How would you compute the intra-class correlation coefficient (ICC)? |
Beta Was this translation helpful? Give feedback.
-
Love that you covered fractional logistic regression. I use this all the time. Usually I account for "0-1 inflation" using a fractional logistic regression + observation level random effects. This approach is described here -- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4517959/ |
Beta Was this translation helpful? Give feedback.
-
Thanks for a very clear tutorial professor! Also, very grateful for all the hard work you put into making your code available to the public. Can’t thank you enough. |
Beta Was this translation helpful? Give feedback.
-
Hello Andrew Thank you VERY much for going through this step by step. It is really appreciated. Your Bayesian approach is super cool, mostly that you include a zero-inflated approach. I work with evolutionary processes in orchids and most plant have 0% fruit set, so it will be very useful. I'll clearly will use your website in the future. On another note would you have a method of doing model selection and evaluating all the combination of variables, something like the dredge function in MuMIn package? That is my present challenge. Much appreciated Raymond |
Beta Was this translation helpful? Give feedback.
-
I am applying this code to my own data. I am having an issue with the marginaleffects() in the code. It keeps giving me the error message: Error in typical(Holding = c(13, 26), model = list(coefficients = list( : Do you happen to know why this may be? Any help is much appreciated! |
Beta Was this translation helpful? Give feedback.
-
May be a dumb question, but for the Beta regression or Bayesian Beta regression, is there a way to simply output the 95% CI around the mu estimates for each group? I know we have the the mu and phi values, but not sure how to code just simply getting the 95% CI for each mu. |
Beta Was this translation helpful? Give feedback.
-
Thank you for posting! It helped me a lot in my work. |
Beta Was this translation helpful? Give feedback.
-
Hi. This explanation is amazing! However, I understood that the explanation regarding the 0-inflated beta regression only uses the categorical variable (quota) as an example. My variable is continuous, which is addressed by the regular beta regression in this tutorial. I did not see any example for a zero-inflated beta regression with a continuous covariate. It would be very helpful if we could discuss that. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
blog/2021/11/08/beta-regression-guide/index
Everything you ever wanted to know about beta regression! Use R and brms to correctly model proportion data, and learn all about the beta distribution along the way.
https://www.andrewheiss.com/blog/2021/11/08/beta-regression-guide/index.html
Beta Was this translation helpful? Give feedback.
All reactions