Learn R Programming

pharmr (version 0.96.0)

run_covsearch: run_covsearch

Description

Run COVsearch tool. For more details, see :ref:covsearch.

Usage

run_covsearch(
  effects,
  p_forward = 0.05,
  p_backward = 0.01,
  max_steps = -1,
  algorithm = "scm-forward-then-backward",
  results = NULL,
  model = NULL,
  ...
)

Value

(COVSearchResults) COVsearch tool result object

Arguments

effects

(str or array(array(str or array(str)))) MFL of covariate effects to try

p_forward

(numeric) The p-value to use in the likelihood ratio test for forward steps

p_backward

(numeric) The p-value to use in the likelihood ratio test for backward steps

max_steps

(numeric) The maximum number of search steps to make

algorithm

(str) The search algorithm to use. Currently 'scm-forward' and 'scm-forward-then-backward' are supported.

results

(ModelfitResults (optional)) Results of 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")
effects <- 'COVARIATE(c(CL, V), c(AGE, WT), EXP)'
res <- run_covsearch(effects, model=model, results=results)
}

Run the code above in your browser using DataLab