design {experDesign} | R Documentation |
Design a batch experiment
Description
Given some samples it distribute them in several batches, trying to have equal number of samples per batch. It can handle both numeric and categorical data.
Usage
design(pheno, size_subset, omit = NULL, iterations = 500, name = "SubSet")
Arguments
pheno |
Data.frame with the sample information. |
size_subset |
Numeric value of the number of sample per batch. |
omit |
Name of the columns of the |
iterations |
Numeric value of iterations that will be performed. |
name |
A character used to name the subsets, either a single one or a
vector the same size as |
Value
The indices of which samples go with which batch.
See Also
The evaluate_*
functions and create_subset()
.
Examples
data(survey, package = "MASS")
index <- design(survey[, c("Sex", "Smoke", "Age")], size_subset = 50,
iterations = 10)
index
[Package experDesign version 0.4.0 Index]