powered by
Makes a CalmrExperiment object containing the arguments necessary to run an experiment.
CalmrExperiment
make_experiment( design, model, parameters = NULL, timings = NULL, iterations = 1, miniblocks = TRUE, seed = NULL, .callback_fn = NULL, ... )
A CalmrExperiment object.
A design data.frame.
data.frame
A string specifying the model name. One of supported_models().
supported_models()
Optional. Parameters for a model as returned by get_parameters().
get_parameters()
Optional. Timings for a time-based design as returned by get_timings()
get_timings()
An integer specifying the number of iterations per group. Default = 1.
Whether to organize trials in miniblocks. Default = TRUE.
A valid seed for the RNG to make the experiment. Default = NULL, in which case the current RNG is used.
A function for keeping track of progress. Internal use.
Extra parameters passed to other functions.
parse_design(),
parse_design()
des <- data.frame(Group = "G1", P1 = "10A>(US)") ps <- get_parameters(des, model = "HD2022") make_experiment( design = des, parameters = ps, model = "HD2022", iterations = 2 )
Run the code above in your browser using DataLab