Learn R Programming

pharmr (version 1.4.0)

run_structsearch: run_structsearch

Description

Run the structsearch tool. For more details, see :ref:structsearch.

Usage

run_structsearch(
  type,
  model,
  results,
  search_space = NULL,
  b_init = NULL,
  emax_init = NULL,
  ec50_init = NULL,
  met_init = NULL,
  extra_model = NULL,
  strictness = "minimization_successful or (rounding_errors and sigdigs >= 0.1)",
  extra_model_results = NULL,
  dv_types = NULL,
  ...
)

Value

(StructSearchResult) structsearch tool result object

Arguments

type

(str) Type of model. Currently only 'drug_metabolite' and 'pkpd'

model

(Model) Search space to test

results

(ModelfitResults) Initial estimate for the baseline for pkpd models.

search_space

(str or ModelFeatures (optional)) Initial estimate for E_MAX (for pkpd models only).

b_init

(numeric (optional)) Initial estimate for EC_50 (for pkpd models only).

emax_init

(numeric (optional)) Initial estimate for MET (for pkpd models only).

ec50_init

(numeric (optional)) Results for the start model

met_init

(numeric (optional)) Pharmpy start model

extra_model

(Model (optional)) Optional extra Pharmpy model to use in TMDD structsearch

strictness

(str (optional)) Results for the extra model

extra_model_results

(ModelfitResults (optional)) Strictness criteria

dv_types

(list(str=numeric) (optional)) Dictionary of DV types for TMDD models with multiple DV

...

Arguments to pass to tool

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
run_structsearch(model_type='pkpd', results=results, model=model)
}

Run the code above in your browser using DataLab