This function updates a previously prepared PKNCAdata object
based on user selections for method, analyte, dose, specimen, and parameters.
Usage
PKNCA_update_data_object(
adnca_data,
method,
selected_analytes,
selected_profile,
selected_pcspec,
should_impute_c0 = TRUE
)Details
Step 1: Update units in the PKNCAdata object
ensuring unique analytes have their unique units
Step 2: Set PKNCAoptions for NCA calculation
Step 3: Format intervals using format_pkncadata_intervals()
Step 4: Apply filtering based on user selections and partial aucs
Step 5: Impute start values if requested
Note*: The function assumes that the adnca_data object has been
created using the PKNCA_create_data_object() function.