This function updates a previously prepared PKNCAdata object
based on user selections for method, analyte, dose, specimen, and parameters.
PKNCA_update_data_object(
adnca_data,
auc_data,
method,
selected_analytes,
selected_profile,
selected_pcspec,
params,
should_impute_c0 = TRUE
)A fully configured PKNCAdata object.
A reactive PKNCAdata object
A data frame containing partial aucs added by user
NCA calculation method selection
User selected analytes
User selected dose numbers/profiles
User selected specimen
A list of parameters for NCA calculation
Logical indicating if start values should be imputed
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.