df.lsd {pwr4exp} | R Documentation |
Create a data frame for Latin square design
Description
Create a data frame for Latin square design
Usage
df.lsd(treatments, label, squares = 1, reuse = c("row", "col", "both"))
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 |
reuse |
A character string specifying how to replicate squares when there are multiple squares. Options are: "row" for reusing row blocks, "col" for reusing column blocks, or "both" for reusing both row and column blocks to replicate a single square. |
Value
a data.frame representing the data structure of the design