complete_random_shuffling {designit} | R Documentation |
Reshuffle sample indices completely randomly
Description
This function was just added to test early on the functionality of optimize_design() to accept a permutation vector rather than a list with src and dst indices.
Usage
complete_random_shuffling(batch_container, ...)
Arguments
batch_container |
The batch-container. |
... |
Other params that are passed to a generic shuffling function (like the iteration number). |
Value
A random permutation of the sample assignment in the container.
Examples
data("invivo_study_samples")
bc <- BatchContainer$new(
dimensions = c("plate" = 2, "column" = 5, "row" = 6)
)
scoring_f <- osat_score_generator("plate", "Sex")
bc <- optimize_design(
bc, scoring = scoring_f, invivo_study_samples,
max_iter = 100,
shuffle_proposal_func = complete_random_shuffling
)
[Package designit version 0.5.0 Index]