Specify the nesting structure for units

nested_in(.unit, ..., .vname)



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 .unit and the right-hand side is an integer specifying the number of levels nested under the corresponding levels.


the child variable name


Returns an isolated graph

See also

See set_units() for examples of how to use this.