Skip to content
Prev 15389 / 20628 Next

Specifying models nested crossed random effects

Diana - thank you very much, I think you're right, and I've found
(interestingly, though maybe not surprisingly) there are two identical ways
to specify this nesting, one is by explicitly identifying the participants
and signals (i.e., not "Participant 1" nested in "Program A" when there is
*another* "Participant 1" in "Program B," but rather using a unique
participant ID and sample ID for every participant and sample, i.e.
(1|program_ID) + (1|sample_ID) or by nesting not unique participant IDs and
sample IDs within program, i.e. (1|program_ID/participant_ID). Chapter 2
<http://lme4.r-forge.r-project.org/book/Ch2.pdf> of the (not published)
lme4 book by Bates helped me understand why (basically, lme4 figures out
the nesting (or crossing) on its own as long as the random effects are not
nested implicitly).

thanks again. also thinking hard about the ordinal issue - while some are,
some of our outcomes are composites of multiple items and so aren't ordinal.

Josh
On Sun, Apr 9, 2017 at 5:00 PM, Diana Michl <dmichl at uni-potsdam.de> wrote: