# Estimands from zero-inflated regression model

**URL:** <https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940>\
**Category:** models\
**Tags:** prediction, interpretation\
**Created:** [May 15, 2024, 3:05pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940 "2024-05-15T15:05:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinspn](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/martinspn/32/4484_2.png) [@martinspn](https://discourse.datamethods.org/u/martinspn)\
**Post date:** [May 15, 2024, 3:05pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/1 "2024-05-15T15:05:44Z")

</div>

Hi all

I am using a **zero inflated beta binomial regression model** for predicting an outcome that assumes integer values ranging from 0 to 10, where **0 = absence** of the finding and **1-10 = extension** of the finding when present.

I used the formula provided [here](https://tiagoms.com/posts/gamlss/) (amazing guidance by the way) to get P(Y = 0) and to estimate Y given the value of a predictor whose model I fitted using restricted cubic splines with knots at 1, 2 and 5. Hope setting knots to successive scores is not problematic - most patients are concentrated in these scores.

Then, I divided this estimate by (1 - P(Y = 0)) to get the estimated outcome among patients who do have the outcome to some extent.

It seems interesting for me to say something like “One has a lower chance of being outcome-free with higher predictor values ( **Graph A** ). However, if one has the outcome, it is expected to behave similarly with predictor values between zero and three ( **Graph B** ). When considering all patients together, the estimated mean outcome values are shown in **Graph C**.” However, I am afraid that the information in B may be useless due conditioning on the outcome.

Does this estimand make sense to you?

![image](https://discourse.datamethods.org/uploads/default/original/2X/b/b8eca4d18bb81e2256989fa8b42ca4d9f49206b1.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![arthur\_albuquerque](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/arthur_albuquerque/32/3269_2.png) [@arthur\_albuquerque](https://discourse.datamethods.org/u/arthur_albuquerque)\
**Post date:** [June 5, 2024, 7:55pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/2 "2024-06-05T19:55:43Z")

</div>

@SolomonKurz what do you think?

---

<div class="post-metadata">

**Author:** ![joels](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/joels/32/3068_2.png) [@joels](https://discourse.datamethods.org/u/joels)\
**Post date:** [June 6, 2024, 8:14pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/3 "2024-06-06T20:14:03Z")

</div>

Can you say more about how your outcome variable is generated? Is it an ordinal rating scale for the severity of a condition, or something like that? Is it possible an ordinal outcome would make more sense for your data? Similarly, is the predictor also really ordinal rather than numeric?

---

<div class="post-metadata">

**Author:** ![martinspn](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/martinspn/32/4484_2.png) [@martinspn](https://discourse.datamethods.org/u/martinspn)\
**Post date:** [June 6, 2024, 8:23pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/4 "2024-06-06T20:23:11Z")

</div>

Sure. The outcome is an ASPECTS-like score for a finding after treatment (details [here](https://radiopaedia.org/articles/alberta-stroke-programme-early-ct-score-aspects?lang=us)). The predictor is the ASPECTS itself.

---

<div class="post-metadata">

**Author:** ![joels](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/joels/32/3068_2.png) [@joels](https://discourse.datamethods.org/u/joels)\
**Post date:** [June 6, 2024, 8:35pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/5 "2024-06-06T20:35:31Z")

</div>

If understand correctly, you’re using the initial ASPECTS score as one of the predictors of post-treatment ASPECTS score (possibly along with other predictors, such as a treatment indicator and maybe other patient characteristics)?

This isn’t my area of subject expertise, but from skimming the page you linked to, the ASPECTS score seems like an ordinal variable. That is, even though the ASPECTS score is rendered as an integer 0 through 10, it is really a series of ordered categories, where a higher number is worse than a lower number, but the “distance” between each successive value isn’t necessarily the same (and perhaps is unknown). If that is the case, it seems like it might make sense to treat both the outcome and the predictor as ordinal.

---

<div class="post-metadata">

**Author:** ![martinspn](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/martinspn/32/4484_2.png) [@martinspn](https://discourse.datamethods.org/u/martinspn)\
**Post date:** [June 18, 2024, 10:27pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/6 "2024-06-18T22:27:33Z")

</div>

Hi Joel, thanks. I agree that handling the post ASPECTS as an ordinal variable would make sense. However, I have decided to use the beta-binomial model both because it also seemed to fit the research question and as a learning exercise. A comparison between the models would be interesting though.

---

<div class="post-metadata">

**Author:** ![f2harrell](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/f2harrell/32/165_2.png) [@f2harrell](https://discourse.datamethods.org/u/f2harrell)\
**Post date:** [June 19, 2024, 11:35am UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/7 "2024-06-19T11:35:56Z")

</div>

This could be a problem. I see very few practitioners doing the diagnostic plots to show adequate fits of beta-binomial, Poisson, or negative binomial.

---

<div class="post-metadata">

**Author:** ![arthur\_albuquerque](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/arthur_albuquerque/32/3269_2.png) [@arthur\_albuquerque](https://discourse.datamethods.org/u/arthur_albuquerque)\
**Post date:** [June 19, 2024, 3:42pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/8 "2024-06-19T15:42:27Z")

</div>

Would posterior predictive checks suffice?

---

<div class="post-metadata">

**Author:** ![f2harrell](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/f2harrell/32/165_2.png) [@f2harrell](https://discourse.datamethods.org/u/f2harrell)\
**Post date:** [June 19, 2024, 7:06pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/9 "2024-06-19T19:06:17Z")

</div>

Yes, indirectly. For either frequentist or Bayesian modeling you should also make plots (like qq plots) that reveal departures from distributional assumptions.

---

<div class="post-metadata">

**Author:** ![martinspn](https://discourse.datamethods.org/user_avatar/discourse.datamethods.org/martinspn/32/4484_2.png) [@martinspn](https://discourse.datamethods.org/u/martinspn)\
**Post date:** [June 20, 2024, 2:06pm UTC](https://discourse.datamethods.org/t/estimands-from-zero-inflated-regression-model/12940/10 "2024-06-20T14:06:37Z")

</div>

Fortunately I had done that according to Tiago’s recommendations in the link I mentioned and the GAMLSS book. The functions I use for posterior predictive checks do not handle GAMLSS models yet.

See below the plots I have got:

![image](https://discourse.datamethods.org/uploads/default/original/2X/5/5e364d6e42b1840de23360f0bcd13ac304d76823.jpeg)  
 ![image](https://discourse.datamethods.org/uploads/default/original/2X/1/168c123e059e1ae1fda5d15efe0fd7cc00404328.jpeg)
