[R-sig-ME] Estimating multiple membership models with lme4

Sijia Huang hu@ng@jcc @end|ng |rom gm@||@com
Fri Jun 12 05:07:10 CEST 2020

Hi all,
I am trying to estimate a multiple membership multiple classification model
with lme4. What I have in the model is that individuals are
cross-classified by ego nets and schools, and each individual can belong to
more than one ego nets.
I have following the instruction,

Below are my codes, where W is a matrix of 0s and 1s that indicates if an
individual belongs to an ego net.

lmod <- lFormula(y~(1|fake.ego.id)+(1|sch.id), data=data)
lmod$reTrms$Zt <- lmod$reTrms$Ztlist[[1]] <- Matrix(t(W))
devfun <- do.call(mkLmerDevfun, lmod)

Error in Lambdat %*% Ut :
  Cholmod error 'A and B inner dimensions must match' at file
../MatrixOps/cholmod_ssmult.c, line 82

Anyone have an idea how to fix this error? Thanks!


	[[alternative HTML version deleted]]

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