I've run a set of 23 models using glmmTMB. (I've set up my models as a list
, example code seen below)
cand.models<-list()
cand.models[[1]]<-glmmTMB(count~depth + slope + SST + (1|individual), family=list(family="truncated_nbinom1", link="log"), data=df)
cand.models[[2]]<-glmmTMB(count~depth + slope + (1|individual), family=list(family="truncated_nbinom1", link="log"), data=df)
I would like to create a summary table that provides the deviance for each model contained within cand.models
. I tried using broom::glance()
, which is supposed to create a "one row" summary that includes deviance, among other things like AIC and BIC.
summ.table<-do.call(rbind, lapply(cand.models, broom::glance))
However, the output does not include the model deviance! (it only includes sigma, logLik, AIC, BIC, and df.residual). Does anyone know why it is not providing the deviance (an issue specific to glmmTMB, perhaps?). Or, does anyone have an alternate solution for extracting the deviance?