df.spd {pwr4exp} | R Documentation |
Create data frame for split-plot design
df.spd(trt.main, trt.sub, label, replicates)
trt.main |
an integer-valued vector specifying the treatment structure at
main plot level, similar to |
trt.sub |
an integer-valued vector specifying the treatment structure at
sub plot level, similar to |
label |
Optional. A list of character vectors specifying the names of
treatment factors and factor levels. Each vector in the list represents a
treatment factor, where the name of the vector specifies the name of the
factor, and the values in the vector are the labels for that factor's levels.
If not provided, factors and levels for one and two treatment factors are
labeled as |
replicates |
the number of experimental units (main plots) per treatment of main plot factors. |
a data.frame with columns for main plots, main treatments, and sub-treatments