Learn R Programming

pharmr (version 0.96.0)

run_amd: run_amd

Description

Run Automatic Model Development (AMD) tool

Runs structural modelsearch, IIV building, and ruvsearch

Usage

run_amd(
  input,
  results = NULL,
  modeltype = "pk_oral",
  cl_init = 0.01,
  vc_init = 1,
  mat_init = 0.1,
  search_space = NULL,
  lloq_method = NULL,
  lloq_limit = NULL,
  order = NULL,
  allometric_variable = NULL,
  occasion = NULL,
  path = NULL,
  resume = FALSE
)

Value

(Model) Reference to the same model object

Arguments

input

(Model or str) Read model object/Path to a dataset

results

(ModelfitResults (optional)) Reults of input if input is a model

modeltype

(str) Type of model to build. Either 'pk_oral' or 'pk_iv'

cl_init

(numeric) Initial estimate for the population clearance

vc_init

(numeric) Initial estimate for the central compartment population volume

mat_init

(numeric) Initial estimate for the mean absorption time (not for iv models)

search_space

(str (optional)) MFL for search space for structural model

lloq_method

(str (optional)) Method for how to remove LOQ data. See transform_blq for vector of available methods

lloq_limit

(str (optional)) Lower limit of quantification. If NULL LLOQ column from dataset will be used

order

(array(str) (optional)) Runorder of components

allometric_variable

(str (optional)) Variable to use for allometry

occasion

(str (optional)) Name of occasion column

path

(str (optional)) Path to run AMD in

resume

(logical (optional)) Whether to allow resuming previous run

See Also

run_iiv

run_tool

Examples

Run this code
if (FALSE) {
model <- load_example_model("pheno")
results <- load_example_modelfit_results("pheno")
run_amd(model, results=results)
}

Run the code above in your browser using DataLab