nested_in {edibble} | R Documentation |
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, ...)
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 |
Details
Currently when specifying conditional treatment, only character vectors are accepted on the RHS.
Value
A nested level.
See Also
See set_units()
for examples of how to use this.
Examples
design("Split-Plot Design | Split-Unit Design") %>%
set_units(mainplot = 60,
subplot = nested_in(mainplot, 10))
[Package edibble version 1.1.1 Index]