Generate the sparse or p-rep allocation to multiple locations.Source:
Generate the sparse or p-rep allocation to multiple locations.
do_optim( design = "sparse", lines, l, copies_per_entry, add_checks = FALSE, checks = NULL, rep_checks = NULL, seed, data = NULL )
Type of experimental design. It can be
Number of genotypes, experimental lines or treatments.
Number of locations or sites. By default
l = 1.
Number of copies per plant. When design is
copies_per_entryshould be less than
Option to add checks. Optional if
design = "prep"
Number of genotypes checks.
Replication for each check.
(optional) Real number that specifies the starting seed to obtain reproducible designs.
(optional) Data frame with 2 columns:
ENTRY | NAME. ENTRY must be numeric.
A list with three elements.
list_locsis a list with each location list of entries.
allocationis a matrix with the allocation of treatments.
size_locationsis a data frame with one column for each location and one row with the size of the location.
Edmondson, R.N. Multi-level Block Designs for Comparative Experiments. JABES 25, 500–522 (2020). https://doi.org/10.1007/s13253-020-00416-0