Skip to content

Instantly share code, notes, and snippets.

@lmassaron
Created October 27, 2022 09:29
Show Gist options
  • Select an option

  • Save lmassaron/493384b4d84e941860b766069fa1101e to your computer and use it in GitHub Desktop.

Select an option

Save lmassaron/493384b4d84e941860b766069fa1101e to your computer and use it in GitHub Desktop.
0-1 Beta regression
dealing with zeros and ones in a beta regression
------------------------------------------------
Smithson, M. & Verkuilen, J.
A better lemon squeezer? Maximum-likelihood regression with beta-distributed dependent variables.
Psychol. Methods 11, 54–71 (2006).
DOI: 10.1037/1082-989X.11.1.54
https://stats.stackexchange.com/questions/31300/dealing-with-0-1-values-in-a-beta-regression
zero-one inflated beta regression
---------------------------------
This approach fits three separate models in a bayesian context.
Model 1: Is a value a discrete 0/1, or is the value in (0,1)? Fit with a bernoulli distribution.
Model 2: Fit discrete subset with a bernoulli distribution.
Model 3: Fit (0,1) subset with beta regression.
https://www.theanalysisfactor.com/zero-one-inflated-beta-models-for-proportion-data/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment