[R-sig-ME] Multiple-membership models with lme4

Sijia Huang hu@ng@jcc @end|ng |rom gm@||@com
Mon May 18 07:31:46 CEST 2020

Hi everyone,
I am working on estimating multiple membership models with lme4, following
the instructions posted here

Below is my code, in which J2 is the number of clusters (in my case, the
clusters are clique-2s, and J2=1345) and N is the number of participants
(N=968). These participants belong to 0 to 11 of the clique-2s.

I got the below error. Could anyone help? Thanks!

> fake2 <- rep(1:J2, length.out=N)
> lmod  <- lFormula(formula=y~1+(1|fake2), data=data)
Error: number of levels of each grouping factor must be < number of


	[[alternative HTML version deleted]]

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