Learn R Programming

pharmr (version 0.96.0)

run_modelsearch: run_modelsearch

Description

Run Modelsearch tool. For more details, see :ref:modelsearch.

Usage

run_modelsearch(
  search_space,
  algorithm,
  iiv_strategy = "absorption_delay",
  rank_type = "bic",
  cutoff = NULL,
  results = NULL,
  model = NULL,
  ...
)

Value

(ModelSearchResults) Modelsearch tool result object

Arguments

search_space

(str) Search space to test

algorithm

(str) Algorithm to use (e.g. exhaustive)

iiv_strategy

(str) If/how IIV should be added to candidate models. Possible strategies are 'no_add', 'add_diagonal', 'fullblock', or 'absorption_delay'. Default is 'absorption_delay'

rank_type

(str) Which ranking type should be used (OFV, AIC, BIC). Default is BIC

cutoff

(numeric (optional)) Cutoff for which value of the ranking function that is considered significant. Default is NULL (all models will be ranked)

results

(ModelfitResults (optional)) Results for model

model

(Model (optional)) Pharmpy mode

...

Arguments to pass to tool

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
run_modelsearch('ABSORPTION(ZO);PERIPHERALS(1)', 'exhaustive', results=results, model=model)
}

Run the code above in your browser using DataLab