compare_models {calmr}R Documentation

Run models given a set of parameters

Description

Run models given a set of parameters

Usage

compare_models(x, models = NULL, ...)

Arguments

x

A list of CalmrExperiment objects or a design data.frame.

models

A character vector of length m, specifying the models to run. Ignored if x is a list of CalmrExperiment objects.

...

Arguments passed to make_experiment.

Value

A list of CalmrExperiment objects

Examples

# By making experiment beforehand (recommended)
df <- get_design("blocking")
models <- c("HD2022", "RW1972", "PKH1982")
exps <- lapply(models, function(m) {
  make_experiment(df,
    parameters = get_parameters(df, model = m),
    model = m
  )
})
comp <- compare_models(exps)

# By passing minimal arguments (not recommended; default parameters)
comp <- compare_models(df, models = models)

[Package calmr version 0.6.1 Index]