Learn R Programming

nlmixr2autoinit (version 1.0.0)

get_pooled_data: Generate pooled data for pharmacokinetic analysis

Description

Processes pharmacokinetic data and produces pooled datasets according to the dosing context. Data can be grouped based on first dose, repeated dosing, or a combination of both, with control over binning and time alignment.

Usage

get_pooled_data(
  dat,
  dose_type = c("first_dose", "repeated_doses", "combined_doses"),
  pooled_ctrl = pooled_control()
)

Value

A list containing pooled pharmacokinetic datasets depending on the specified dose type:

  • datpooled_fd: pooled data for first-dose observations

  • datpooled_efd: pooled data for repeated dosing

  • datpooled_all: pooled data combining first-dose and repeated-dose observations

Arguments

dat

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

dose_type

Specifies the dosing context of the pharmacokinetic observations. Classified as:

  • first_dose: data include only observations following the initial administration

  • repeated_doses: data include only observations during repeated or steady-state dosing

  • combined_doses: data include observations from both first-dose and repeated-dose intervals

pooled_ctrl

A list of control parameters created by 'pooled_control', including settings for binning and time rounding.

Author

Zhonghui Huang

Details

For repeated-doses and combined-doses classifications, the most common interdose interval is identified from dosing records and used to determine whether observations fall within the relevant interval. If tad_rounding is TRUE, both time after dose and dosing interval are rounded before comparison.

See Also

pooled_control, trimmed_geom_mean

Examples

Run this code
dat <- processData(Bolus_1CPT)$dat
get_pooled_data(dat, dose_type = "combined_doses")

Run the code above in your browser using DataLab