Displaying 1 result from an estimated 1 matches for "recpar".
Did you mean:
vecpar
2018 Feb 26
0
How to model repeated measures negative binomial data with GEE or GLMM
...I have become more familiar with GLMMs in R, so perhaps that is a better
approach. I tried running GLMMs with package glmmTMB, but I am not sure I
specified the random effect correctly (am I properly accounting for the
repeated measures within AND between years?):
m2 <- glmmTMB(Diract ~ DirPar*RecPar + offset(LnScan) + Year + (1|ID),
data=Direct, family=list(family="nbinom1",link="log"))
I further tried to specify a compound symmetry covariance structure with
glmmTMB, but this failed:
m2a <- glmmTMB(Diract ~ DirPar*RecPar + offset(LnScan) + Year + cs(1|ID),
data=Direc...