run_allometry function

run_allometry

run_allometry

Run allometry tool. For more details, see :ref:allometry.

run_allometry( model = NULL, results = NULL, allometric_variable = "WT", reference_value = 70, parameters = NULL, initials = NULL, lower_bounds = NULL, upper_bounds = NULL, fixed = TRUE, ... )

Arguments

  • model: (Model (optional)) Pharmpy model
  • results: (ModelfitResults (optional)) Results for model
  • allometric_variable: (str or Expr) Name of the variable to use for allometric scaling (default is WT)
  • reference_value: (str or numeric or Expr) Reference value for the allometric variable (default is 70)
  • parameters: (array(str or Expr) (optional)) Parameters to apply scaling to (default is all CL, Q and V parameters)
  • initials: (array(numeric) (optional)) Initial estimates for the exponents. (default is to use 0.75 for CL and Qs and 1 for Vs)
  • lower_bounds: (array(numeric) (optional)) Lower bounds for the exponents. (default is 0 for all parameters)
  • upper_bounds: (array(numeric) (optional)) Upper bounds for the exponents. (default is 2 for all parameters)
  • fixed: (logical) Should the exponents be fixed or not. (default TRUE
  • ...: Arguments to pass to tool

Returns

(AllometryResults) Allometry tool result object

Examples

## Not run: model <- load_example_model("pheno") results <- load_example_modelfit_results("pheno") run_allometry(model=model, results=results, allometric_variable='WGT') ## End(Not run)
  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04