View source: R/make_experiment.R
make_experiment | R Documentation |
Makes a CalmrExperiment
object containing
the arguments necessary to run an experiment.
make_experiment(
design,
model,
parameters = NULL,
timings = NULL,
iterations = 1,
miniblocks = TRUE,
seed = NULL,
.callback_fn = NULL,
...
)
design |
A design |
model |
A string specifying the model name. One of |
parameters |
Optional. Parameters for a model as
returned by |
timings |
Optional. Timings for a time-based design as
returned by |
iterations |
An integer specifying the number of iterations per group. Default = 1. |
miniblocks |
Whether to organize trials in miniblocks. Default = TRUE. |
seed |
A valid seed for the RNG to make the experiment. Default = NULL, in which case the current RNG is used. |
.callback_fn |
A function for keeping track of progress. Internal use. |
... |
Extra parameters passed to other functions. |
A CalmrExperiment object.
The miniblocks option will direct the sampling function to create equally-sized miniblocks with random trials within a phase. For example, the phase string "2A/2B" will create two miniblocks with one of each trial. The phase string "2A/4B" will create two miniblocks with one A trial, and 2 B trials. However, the phase string "2A/1B" will not result in miniblocks, even if miniblocks here is set to TRUE.
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.