create_conc.Rd
This function creates a pharmacokinetic concentration dataset from the provided ADNCA data.
create_conc(ADNCA, analyte, proftype)
A data frame containing the filtered and processed concentration data.
The function performs the following steps:
Filters the data for the specified analyte and event ID (EVID == 0).
Creates a 'groups' column by concatenating 'USUBJID' and 'DOSNO'.
Filters out negative time values.
Arranges the data by 'STUDYID', 'USUBJID', 'PCSPEC', 'DOSNO', and 'TIME'.
Adds an index column ('IX') within each group.
if (FALSE) { # \dontrun{
# Example usage:
conc_data <- create_conc(ADNCA, "analyte_name", "profile_type")
} # }