I am working with data of vegetation cover (proportions) for different height strata (0-5, 5-15, 15-30, >30 cm, and also bare ground) amongst four different sites (sitio) and two different time periods (epoca: breeding and non breeding season). I went with GLM using the beta distribution (glmmTMB
) and then used emmeans
. In this question I showed the model I am using and had my interpretation problems solved.
Now I want to know how can I compress or normalize my data columns to exclude 0 and 1 values, since I can't run the model for some variables that include 0 values (e.g. 0-5 cm vegetation cover):
beta_sd <- glmmTMB(X0.5 ~ sitio * epoca,
+ data = vege2,
+ family = beta_family)
Error in eval(family$initialize) : y values must be 0 < y < 1