run_iovsearch: run_iovsearch

View source: R/functions_wrapper.R

run_iovsearchR Documentation

run_iovsearch

Description

Run IOVsearch tool. For more details, see :ref:iovsearch.

Usage

run_iovsearch(
  model,
  results,
  column = "OCC",
  list_of_parameters = NULL,
  rank_type = "bic",
  cutoff = NULL,
  distribution = "same-as-iiv",
  strictness = "minimization_successful or (rounding_errors and sigdigs>=0.1)",
  E = NULL,
  ...
)

Arguments

model

(Model) Pharmpy model

results

(ModelfitResults) Results for model

column

(str) Name of column in dataset to use as occasion column (default is 'OCC')

list_of_parameters

(array(str or array(str)) (optional)) List of parameters to test IOV on, if none all parameters with IIV will be tested (default)

rank_type

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

cutoff

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

distribution

(str) Which distribution added IOVs should have (default is same-as-iiv)

strictness

(str (optional)) Strictness criteria

E

(numeric or str (optional)) Expected number of predictors (used for mBIC). Must be set when using mBI

...

Arguments to pass to tool

Value

(IOVSearchResults) IOVSearch tool result object

Examples

## Not run: 
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
run_iovsearch(model=model, results=results, column='OCC')

## End(Not run)


pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.