jvparidon / lmerMultiMember

Multiple membership random effects. Wrapper around lme4::lmer and lme4::glmer.
https://jvparidon.github.io/lmerMultiMember/
MIT License
16 stars 1 forks source link

Fixing bug that occurs when a multimembership effect is used in an interaction... #30

Closed jvparidon closed 2 years ago

jvparidon commented 2 years ago

...before it is used as a "main" random effect grouping. See #28 for MWE.

jvparidon commented 2 years ago

This fix produces the correct indicator/weight matrices and inserts them into Ztlist/Zt and it updates Lambdat, Lind, theta, and lower in lmod$reTrms, but it's still throwing errors because something is off in the internal bookkeeping. If the fix I proposed in #28 today works, I might use that instead and abandon this PR.

jvparidon commented 2 years ago

Fixed this problem in #33