I am analyzing some latency data, with a gamma distribution and using a glmmtmb model. The problem arises when I want to do a dharma to this model and I get this error.
m1 <- glmmTMB(formula = Lat.Min ~ Fruta,
family = Gamma(link = "log"),
data = datos)
library(DHARMa)
simulationOutput <- simulateResiduals(fittedModel = m1, refit = T, plot = T) #no converge para
hist(simulationOutput)
testDispersion(simulationOutput)
simulate
Error in UseMethod("family") :
no applicable method for 'family' applied to an object of class "glmmTMB"
dharma is supposed to support glmmtmb so I don't understand why it doesn't work.