[R-sig-ME] glmmTMB: Including variable in as fixed effect and in dispersion model

Andre Syvertsen Andre@Syvert@en @end|ng |rom u|b@no
Fri Jun 25 12:32:49 CEST 2021

Hi guys,

Is it possible/meaningful to include a variable both as a fixed effect and in the dispersion model? For example, I have run the following model:

m4DaysPlayed <- glmmTMB(daysPlayed ~ 1 + time + ageCategory * gender + (time | id), disp = ~time, dfLong, family = truncated_nbinom2)

Rationale: I want to study the effect of time on the outcome variable, but I have also found evidence for heteorskedasticity when simulating through DHARMa. I suspect that the time variable influences this, the sample size decreases/variation increases as time goes on.

Kind regards,

	[[alternative HTML version deleted]]

More information about the R-sig-mixed-models mailing list