nested_in: Specify the nesting or conditional structure for units or treatments
Description
Conditional treatment is different to nested units as the levels are assumed to be
distinct for the latter but not for the former.
Usage
nested_in(x, ...)
conditioned_on(x, ...)
Value
A nested level.
Arguments
x
The name of the parent unit to nest under.
...
a single number OR a sequence of two-sided formula where the
left-hand side corresponds to the name of the level (or the level number) of x
and the right-hand side is an integer specifying the number of levels nested under the
corresponding levels.
Details
Currently when specifying conditional treatment, only character vectors
are accepted on the RHS.