lme4 upgrade produces error message even after grouping variables within the data frame
问题 I've been running linear mixed models using an old version of lme4. Now that I have updated lme4 I'm getting the following error: Error en [[<-.data.frame ( *tmp* , i, value = integer(0)) : replacement has 0 rows, data has 4211 I found in this website an answer that suggests to put all the grouping variables within the data frame specified by the data argument. I've done that but my code still doesn't work. Here it is: msdgtot=glmer(sdg.dens ~ ngbr.trees + (1 + ngbr.trees | factor(species)),