This function creates a pharmacokinetic concentration dataset from the provided ADNCA data.
Usage
format_pkncaconc_data(
ADNCA,
group_columns,
time_column = "AFRLT",
rrlt_column = "ARRLT",
route_column = "ROUTE"
)
Arguments
- ADNCA
A data frame containing the ADNCA data.
- group_columns
A character vector specifying the columns to group by.
- time_column
A character string specifying the time column.
- rrlt_column
A character string specifying the time since last dose column.
- route_column
A character string specifying the route column.
Details
The function performs the following steps:
Checks for required columns and data.
Filters out rows with EVID = 0 and PARAMCD containing "DOSE" (dosing data- not CDISC standard)
Calculates
TIME_DOSE
as the time of dose reference by the PK sampleCreates
DOSNOA
variable, sequential numbers based on time of doseAdds a 'std_route' column taking values "intravascular" or "extravascular".
Arranges the data by group_columns.