df.cod {pwr4exp} | R Documentation |
Create a data frame for Crossover design
Description
Create a data frame for Crossover design
Usage
df.cod(treatments, label, squares)
Arguments
treatments |
An integer vector where each element represents the number of levels
of the corresponding treatment factor. A single integer (e.g., |
label |
Optional. A list of character vectors, each corresponding to a treatment factor.
The name of each vector specifies the factor's name, and its elements provide the labels for that factor's levels.
If no labels are provided, default labels will be used. For a single treatment factor, the default is
|
squares |
The number of replicated squares. By default, 1, i.e., no replicated squares. |
Value
a data.frame representing the data structure of the design