Sample from the candidate set to create a random design_object.

random_design_candidate(utility, candidate_set, rows, sample_with_replacement)

Arguments

utility

A named list of utility functions. See the examples and the vignette for examples of how to define these correctly for different types of experimental designs.

candidate_set

A matrix or data frame in the "wide" format containing all permitted combinations of attributes. The default is NULL. If no candidate set is provided, then the full factorial subject to specified exclusions will be used. This is passed in as an object and not a character string. The candidate set will be expanded to include zero columns to consider alternative specific attributes.

rows

An integer giving the number of rows in the final design

sample_with_replacement

A boolean equal to TRUE if we sample from the candidate set with replacement. The default is FALSE