View source: R/sim_sens_params.R
| sim_sens_1cmpt_mm | R Documentation |
Performs parameter sweeping by varying pharmacokinetic parameters in a one-compartment model with Michaelis-Menten elimination.
sim_sens_1cmpt_mm(
dat,
sim_vmax = list(mode = "auto", values = NULL, est.cl = NULL),
sim_km = list(mode = "auto", values = NULL),
sim_vd = list(mode = "manual", values = NULL),
sim_ka = list(mode = "manual", values = NULL),
route = c("iv", "oral"),
verbose = TRUE
)
dat |
A data frame containing raw time–concentration data in the standard nlmixr2 format. |
sim_vmax |
List specifying Vmax:
|
sim_km |
List specifying Km:
|
sim_vd |
List specifying Vd:
|
sim_ka |
List specifying Ka (oral route only):
|
route |
Dosing route, either "iv" or "oral". Default is "iv". |
verbose |
Logical (default = TRUE).
Controls whether progress information is displayed during parameter sweeping.
When TRUE, a dynamic progress bar is shown using the |
The function generates a parameter grid and performs model fitting for each
combination using Fit_1cmpt_mm_iv. Parameters can be specified manually or
automatically derived. Model predictions and fit metrics are computed for each
simulation to assess parameter sensitivity.
A data frame containing parameter combinations and model fit metrics.
Zhonghui Huang
Fit_1cmpt_mm_iv, Fit_1cmpt_mm_oral
# Example: IV dosing scenario with automatic Vmax and Km
out <- sim_sens_1cmpt_mm(
dat = Bolus_1CPTMM[Bolus_1CPTMM$ID<50,],
sim_vmax = list(mode = "auto", est.cl = 4),
sim_km = list(mode = "auto"),
sim_vd = list(mode = "manual", values = 70),
sim_ka = list(mode = "manual", values = NA),
route = "iv"
)
head(out[out$rRMSE2==min(out$rRMSE2),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.