This function reshapes the structure of the results produced by the main function of the PKNCA package (pk.nca) in a way that each row represents all the main results summarized for each profile in each individual/subject. Excluding the ID variables, each column name corresponds with a calculated parameter and between brackets its corresponding units. AUC intervals, if present, are be added as additional columns.
Arguments
- myres
The output of PKNCA::pk.nca. It makes some additional assumptions:
CDISC denomination of actual and nominal time variables (AFRLT, ARRLT, NFRLT, NRRLT).
Intervals must include a column (
type_interval
) to differentiate between the custom AUC ranges ("manual") and main parameter calculations ("main").Includes
PPSTRES
andPPSTRESU
variables in results dataset.Columns
start_dose
andend_dose
must express the actual start and end times of the dose, relative to the last reference dose.Temporarily: CDISC denomination of PK parameters related to half-life: "LAMZNPT", "LAMZLL", "LAMZ" Used to derive
LAMZNPT
andLAMZMTD
.