[R-sig-ME] same model runs in nlme but not lme4

Simon Harmel @|m@h@rme| @end|ng |rom gm@||@com
Fri May 22 23:57:27 CEST 2020


Hi All,

I was wondering why my model runs ok when I use `nlme` package but it fails
when I use the `lme4` package, am I missing something?

Thanks, Simon

#===================================
library(lme4)
library(nlme)

dat <- read.csv('https://raw.githubusercontent.com/hkil/m/master/z.csv')

m1 <- lmer(y~ group*year + (year|stid), data = dat)       ## Fails ###

m2 <- lme(y~ group*year, random = ~year|stid, data = dat) ## Runs ###

	[[alternative HTML version deleted]]



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