Skip to content

Details on specifying random parameters in 3-level HLM with lme

2 messages · Richard Asturia, Ben Bolker

2 days later
#
Richard Asturia <richard.asturia at ...> writes:
I haven't actually tried this out (I would be more likely to
test it before answering if you gave a reproducible example),
but have you noticed that under the
description of the 'random' argument, ?lme says

(ii) a list of one-sided formulas of the
form ?~x1+...+xn | g?, with possibly different random effects
models for each grouping level. The order of nesting will be
assumed the same as the order of the elements in the list;

  So I would think that something like

  random = list( ~ X1 + X2 | level2, ~ X1 + X3 | level3:level2 )

might work?
  
  Ben Bolker