Skip to content
Prev 19607 / 20628 Next

When a higher level can't be modeled due to one row

If measure varies within one study level, but is present and constant in
the others, then you can still do:

?(1 | study / outcome) + (1 | measure)

You'll just get one BLUP/conditional mode for each study where measure
is constant. That's fine and expected -- the measure is constant for the
entire study, so its associated random effect shouldn't change. Of
course, the measure and study effects (BLUPs) are conflated for every
study but 2 (so you shouldn't overinterpret the BLUPs), but you may
still be able to separate their overall variance contribution (the bits
reported in the "random effects" section of lme4's output).

The big fine print here is that you need to have enough

- observations in each study

- levels of study (with only 3 levels, study probably shouldn't be
treated as a blocking variable....)

- variabiity between studies

- levels of measure in study 2

- variability between measures
On 11/9/21 12:36, Farzad Keyhan wrote:
Message-ID: <181d05f1-f9c7-1901-a2b9-6d720c54ee91@phillipalday.com>
In-Reply-To: <CAEvy2r0SZJS0=R8xXatuu1hpA2hMFgerPxt43m9HTP0fkK2oKA@mail.gmail.com>