View source: R/crossover_design.R
| crossover_design | R Documentation |
Generates a crossover design for clinical, veterinary, pharmaceutical and agricultural experiments.
crossover_design(
treatments,
subjects,
periods = length(treatments),
seed = NULL
)
treatments |
Character vector of treatment labels. |
subjects |
Number of subjects. |
periods |
Number of study periods. |
seed |
Optional random seed. |
A tibble containing the crossover schedule.
crossover_design(
treatments = c("A","B"),
subjects = 8,
periods = 2,
seed = 123
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.