run_npd_1cmpt_oral: Run and evaluate a one-compartment oral model

View source: R/run_modelfit.R

run_npd_1cmpt_oralR Documentation

Run and evaluate a one-compartment oral model

Description

Fits a one-compartment oral pharmacokinetic model using a naive pooled data approach and evaluates model performance based on prediction error metrics.

Usage

run_npd_1cmpt_oral(
  dat,
  est.method = "nls",
  input.ka = exp(1),
  input.cl = exp(1),
  input.vd = exp(1),
  input.add = 1
)

Arguments

dat

A data frame containing raw time–concentration data in standard nlmixr2 format.

est.method

Estimation method used in nlmixr2. Defaults to "nls".

input.ka

Initial estimate for the absorption rate constant (Ka). Defaults to exp(1), corresponding to a log-scale value of 1.

input.cl

Initial estimate for clearance (CL). Defaults to exp(1), corresponding to a log-scale value of 1.

input.vd

Initial estimate for volume of distribution (Vd). Defaults to exp(1), corresponding to a log-scale value of 1.

input.add

Additive error term. Defaults to 1.

Details

Rows with EVID == 2 are excluded before model fitting. The model is fitted using Fit_1cmpt_oral, and prediction-based metrics are calculated to assess performance.

Value

A list containing the fitted parameter estimates and prediction error metrics.

Author(s)

Zhonghui Huang

See Also

Fit_1cmpt_oral

Examples


run_npd_1cmpt_oral(dat = Oral_1CPT, input.ka = 1, input.cl = 4, input.vd = 70)
 

nlmixr2autoinit documentation built on Nov. 14, 2025, 1:07 a.m.