Tricky Bayesian #rstats #brms methods question! I'm building a predictive model for a strangely-distributed outcome—it's a count with a bunch of 1s, a bunch of 32s (the max) and some numbers in between. How do you model this weird thing?! (reprex here: gist.github.com/andrewheiss/33…) Histogram showing a distrib...
- I can subtract 1 from the outcome and use zero-inflated poisson to pick up the excess 1s, but there's no such thing as "1-and-32-inflated poisson" like zero-one-inflated beta, and the pp_check is awful
- I can use a mixture of two poisson models, but pp_check is bad+ESS bad Zero-inflated poisson modelMixture of two poisson models
- I can collapse all the 2–31 counts into a category and just do ordered logit with 1, 2–31, and 32 as categories, but collapsing like that feels icky Distribution of collapsed o...Good results from pp_check ...
idk :(
Treating the outcome as a proportion (it's censored at 32 because it's actually a count of provinces each row works in and there are only 32 provinces in the country so 100% = 32) means I can use zero-one-inflated beta regression without any custom families and it works! ImageImage

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Andrew Heiss (🐘 @andrew@fediscience.org)

Andrew Heiss (🐘 @andrew@fediscience.org) Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @andrewheiss

Jul 29, 2022
And in more @quarto_pub #rstats news, I just finished remaking one of my complex course websites as a Quarto website and IT IS SO COOL. Configuring the site was quick and easy. The part that took the longest was customizing some of the template partials evalf22.classes.andrewheiss.com ImageImageImage
Even cooler is that I build the whole thing with {targets} with some complex stuff, like automatically zipping homework folders for easy downloading, rendering xaringan slides and converting them to PDF, generating data, and uploading to my server, all without Make! #rstats ImageImage
NO MORE FIGHTING WITH FINICKY HUGO VERSIONS
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(