View source: R/run_experiment.R
run_experiment | R Documentation |
Runs an experiment with minimal parameters.
run_experiment(x, outputs = NULL, parse = TRUE, aggregate = TRUE, ...)
x |
A CalmrExperiment or design |
outputs |
A character vector specifying which outputs to parse and aggregate. Defaults to NULL, in which case all model outputs are parsed/aggregated. |
parse |
A logical specifying whether the raw results should be parsed. Default = TRUE. |
aggregate |
A logical specifying whether the parsed results should be aggregated. Default = TRUE. |
... |
Arguments passed to other functions |
A CalmrExperiment with results.
# Using a data.frame only (throws warning)
df <- get_design("relative_validity")
run_experiment(df, model = "RW1972")
# Using custom parameters
df <- get_design("relative_validity")
pars <- get_parameters(df, model = "HD2022")
pars$alphas["US"] <- 0.6
run_experiment(df, parameters = pars, model = "HD2022")
# Using make_experiment, for more iterations
df <- get_design("blocking")
pars <- get_parameters(df, model = "SM2007")
exper <- make_experiment(df,
parameters = pars, model = "SM2007",
iterations = 4
)
run_experiment(exper)
# Only parsing the associations in the model, without aggregation
run_experiment(exper, outputs = "associations", aggregate = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.