Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

glmmTMB with beta family

$
0
0

I am trying to model the photosynthetic response (fvfm) that takes values from 0 to 0.7, I am using the beta distribution since I have zero inflation, and I consider a dispersion model because my values move away from the average as they pass days, but when running this model:

beta7<-glmmTMB(fvfm~Temperature*dia+(1|ID), zi=~1, disp=~dia, data=ds, family=beta_family(link="logit"))

and this appears :

Error in eval(family$initialize) : y values must be 0 < y < 1

I add to all the values of my response variable 0.001, so I no longer have zero inflation and the model works. This is correct?? or is there any way to run without adding 0.001?? Thank you!! Regards Fran


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>