Estimates the terminal half-life of a drug using pooled pharmacokinetic data. The method supports analysis based on first-dose, repeated-dose, or combined dosing profiles.
get_hf(dat, dose_type = "first_dose", pooled = NULL, verbose = TRUE, ...)A list containing individual and median half-life estimates for first-dose, repeated-dose, and combined dosing profiles.
A data frame containing raw time–concentration data in the standard nlmixr2 format.
Specifies the dosing context of the pharmacokinetic observations. Classified as:
first_dose: observations occur only after the initial administration
repeated_doses: observations occur only after multiple administrations or at steady state
combined_doses: observations include both first-dose and repeated-dose intervals
Optional pooled data object generated by get_pooled_data. If not provided, pooled data are automatically created using the input dataset.
Logical; if TRUE (default), progress and completion messages are printed to the console. Set to FALSE to suppress all informational messages, for example when running automated scripts or tests.
Additional arguments passed to bin.time for pooling operations or to find_best_lambdaz for elimination slope estimation.
Zhonghui Huang
The function estimates terminal half-life using the following procedure:
Generate or use existing pooled pharmacokinetic data
Identify the terminal phase using elimination slope estimation
Calculate the terminal elimination rate constant (lambda_z)
Derive half-life using:
$$ t_{1/2} = \frac{\log(2)}{\lambda_z} $$
get_pooled_data, bin.time, find_best_lambdaz
dat <- Bolus_1CPT
dat <- processData(dat)$dat
get_hf(dat, dose_type = "combined_doses")
Run the code above in your browser using DataLab