Error in na.fail.default: missing values in object - but no missing values?

I am trying to run a lme model with these data: tot_nochc=runif(10,1,15) cor_partner=factor(c(1,1,0,1,0,0,0,0,1,0))...

lmer error: grouping factor must be < number of observations?

I am attempting to run a mixed effect model on some data but struggling with one of the fixed effects, I think prima...

Fitting the same models in nlme and lme4?

The data are from here library(nlme) dat0 &lt;- read.table("aids.dat2",head=T) dat1 &lt;- dat0[dat0$day&lt;=90, ] ...