# Beta-Binomial Multi-Membership Results Interpretation Issues

**URL:** <https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409>\
**Category:** brms\
**Tags:** techniques, bayesplot, brms, fitting-issues\
**Created:** [February 16, 2023, 7:19am UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409 "2023-02-16T07:19:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunter24](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Post date:** [February 16, 2023, 7:19am UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/1 "2023-02-16T07:19:52Z")

</div>

I am trying to interpret my results and am having issues

My model  
Multi-Membership random effect  
male\_id and female\_id

Dependent Variable:

Association Rate: Amount of instances/ Total instances in a day

Independent Variables:  
Status: Territorial Males or Satellite Males  
Date: Day of breeding season  
Male degree: Number of male conspecfics that were met on the previous day  
Non-focal: Promiscuity of female on previous day

Description:  
There are alot of 0’s for male degree and non-focal so I assumed that male\_degree and non\_focal would be influencing the dispersion in the model (phi).

I did two models, one where I modeled date as a second degree polynomial function

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/7/7c9653a82a12fb87cec43931a24cfb00ef4ea5cb.png)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/5/5843478c365085789d05385a293192b98d9759f9.png)

male\_degree

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/0/08ca1c10462b763e430669a2b71b2f0d860c6a68.png)  
non\_focal  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/1/1f45a898b88f98d33669178ba8428196446f0ca2.png)

And one where I modeled date as regular

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/c/c56ba1984add49923868ad164062f28117d03ad3.png)  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/6/69744cfa4ce3ea7157e78558914d530d3b194449.png)  
male\_degree  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/5/5d966353135215f10eb3e029025deccbdb50c88c.png)  
non\_focal  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/4/4a036a06cc0bcd497d70c1aaa55c4e1f7e6087cf.png)

This is how I calculated the predicted probabilities  
Predicted Probabilities:  
exp(b\_Intercept+b\_male\_degree x male\_degree)/(1+exp(b\_Intercept+b\_male\_degree x male\_degree)  
exp(b\_Intercept+b\_non\_focal x non\_focal)/(1+exp(b\_Intercept+b\_non\_focal x non\_focal))

I believe this issue is with the crazy intercept in the regular date model.

When I did this model in a frequestist form to check for multi-collinearity ( I put dyadic ID as a random effect and not a multi-membership to test for multicollinarity ), the model wouldn’t converge. Although when I put date as a second degree polynomial function it did converge.

So my question is why this is doing this and how to accurately represent the effects for just the date normal model because that was my best model based off of leave-one-out cross-validation.

@paul.buerkner  
@avehtari  
@jd_c

---

<div class="post-metadata">

**Author:** ![jd\_c](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jd_c/32/16759_2.png) [@jd\_c](https://discourse.mc-stan.org/u/jd_c)\
**Post date:** [February 17, 2023, 5:44pm UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/2 "2023-02-17T17:44:35Z")

</div>

> [@Hunter24](#):
>
> So my question is why this is doing this and how to accurately represent the effects for just the date normal model because that was my best model based off of leave-one-out cross-validation.

I am not sure why the model with a linear term for date has such a large error in the Intercept vs the model with the polynomial. Perhaps you need to use better priors. I’m not sure anyone could answer this based on just the model output…  
Also, in general I would recommend using a spline instead of a polynomial. Splines are easy to fit in brms, using the `s()` syntax from mgcv.  
When you used LOO, did you get a warning about high pareto k?  
I would be pretty suspicious of a model where the intercept had an error that was so high.

For the plots, I would use `conditional_effects()` as I mentioned in your other post.

---

<div class="post-metadata">

**Author:** ![Hunter24](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Post date:** [February 18, 2023, 1:32pm UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/3 "2023-02-18T13:32:31Z")

</div>

@jd_c

How would you interpret the phi intercept?

since is significant it means that it is influencing the dispersion in the model?

---

<div class="post-metadata">

**Author:** ![jsocolar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jsocolar/32/2486_2.png) [@jsocolar](https://discourse.mc-stan.org/u/jsocolar)\
**Post date:** [February 18, 2023, 2:26pm UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/4 "2023-02-18T14:26:37Z")

</div>

`phi_Intercept` gives the link-scale value of phi when all predictors are held at their means. That it is non zero (“significant”) means that the link-scale value of phi when all predictors are held at their means is something other than zero. Any value, zero or otherwise, influences the dispersion in the model.

---

<div class="post-metadata">

**Author:** ![Hunter24](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Post date:** [February 18, 2023, 2:45pm UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/5 "2023-02-18T14:45:59Z")

</div>

@jsocolar But since this is positive it means it reduces the dispersion?

How would one interpret this?

---

<div class="post-metadata">

**Author:** ![Hunter24](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@Hunter24](https://discourse.mc-stan.org/u/Hunter24)\
**Post date:** [February 18, 2023, 3:15pm UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/6 "2023-02-18T15:15:36Z")

</div>

No there were no warnings on pareto k. They were all under 0.5

---

<div class="post-metadata">

**Author:** ![jsocolar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jsocolar/32/2486_2.png) [@jsocolar](https://discourse.mc-stan.org/u/jsocolar)\
**Post date:** [February 18, 2023, 4:11pm UTC](https://discourse.mc-stan.org/t/beta-binomial-multi-membership-results-interpretation-issues/30409/7 "2023-02-18T16:11:25Z")

</div>

`phi` is fitted with a log link. Since the intercept is positive, the resulting beta-binomial has a higher precision in the beta component–and thus lower dispersion–than a beta-binomial distribution with `phi` equal to `exp(0) = 1`. Of course it still has higher dispersion than a plain old binomial distribution.
