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

create_dose(adnca_conc)

Arguments

adnca_conc

A data frame containing the concentration data.

Value

A data frame containing the dose data.

Details

The function performs the following steps:

  • Arranges the data by 'USUBJID' and 'DOSNO'.

  • Groups the data by 'USUBJID' and 'DOSNO'.

  • Selects the first row within each group.

  • Converts 'DOSEA' to numeric and retains the 'ROUTE' as 'IQROUTE'.

Examples

if (FALSE) { # \dontrun{
  # Example usage:
  dose_data <- create_dose(conc_data)
} # }