Learn R Programming

nlmixr2autoinit (version 1.0.0)

nca_control: Control options for non-compartmental analysis

Description

Control options for non-compartmental analysis (NCA)

Usage

nca_control(
  trapezoidal.rule = c("linear_up_log_down", "linear"),
  duration = NULL,
  nlastpoints = 3,
  slope.method = "bestfitforce"
)

Value

A list with NCA control parameters.

Arguments

trapezoidal.rule

Character. Method for trapezoidal AUC integration:

  • "linear" - Linear trapezoidal rule (default)

  • "linear_up_log_down" - Linear-up / log-down rule

duration

Numeric. Optional. Duration of the observation window (same units as time). Used to restrict the integration or define the evaluation range.

nlastpoints

Integer. Number of terminal points for half-life regression (default = 3).

slope.method

Character. Method for estimating the terminal slope (lambdaz). Options are:

  • "bestfit": Performs automated terminal phase selection based on adjusted R-squared. If no acceptable segment is found, lambdaz is returned as NA.

  • "bestfitforce": First attempts the "bestfit" method. If no valid lambdaz is obtained, the function applies a fallback log-linear regression using progressively fewer terminal points to force estimation. This is the default.

Author

Zhonghui Huang

Examples

Run this code
nca_control()

Run the code above in your browser using DataLab