This function creates a pharmacokinetic concentration dataset from the provided ADNCA data.

create_conc(ADNCA, analyte, proftype)

Arguments

ADNCA

A data frame containing the ADNCA data.

analyte

A character string specifying the analyte of interest.

proftype

A character string specifying the profile type (not used in the function but kept for consistency).

Value

A data frame containing the filtered and processed concentration data.

Details

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.

Examples

if (FALSE) { # \dontrun{
  # Example usage:
  conc_data <- create_conc(ADNCA, "analyte_name", "profile_type")
} # }