Skip to contents

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

Usage

format_pkncaconc_data(
  ADNCA,
  group_columns,
  time_column = "AFRLT",
  dosno_column = "DOSNO"
)

Arguments

ADNCA

A data frame containing the ADNCA data.

analyte

A character string specifying the analyte of interest.

Value

A data frame containing the filtered and processed concentration data.

Details

The function performs the following steps:

  • Creates a 'groups' column by concatenating 'USUBJID' and 'DOSNO'.

  • Arranges and groups the data by groups_column.

  • Adds an index column ('IX') 1:n within each group of length n.

Examples

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