Produces a long-format subject-level listing of individual NCA concentrations by time from a PKanalix project, one row per subject/time point, joined with the used-concentration data (which points entered the lambda-z calculation) and censoring flags. Supports stratification/occasion columns, optional nominal time, and covariate/ID filtering.
Usage
listingNCAConcentration(projectFile = NULL,
splitCovariates = NULL,
useNominalTime = FALSE,
filterCovariates = NULL,
filterIds = NULL,
roundDigits = 3,
roundMethod = c("none", "monolixSuiteRounding", "significantFigures", "significantFiguresPreserved"),
mock = FALSE)
Arguments
-
projectFile(character) Path to a PKanalix project file (.pkx). IfNULL(default), uses the currently loaded project. -
splitCovariates(character) Covariate name(s) to include as stratification columns, e.g.c("TREAT","FOOD"). IfNULL(default), no stratification. Occasion columns present in the project are appended automatically (and concatenated into the subject ID withsep = "#"to keep IDs unique). -
useNominalTime(logical) IfTRUE, attempts to use nominal time for the listing; if nominal time is unavailable in the project, falls back to actual time and issues a warning. Default isFALSE. (Actual time is always extracted so the listing can join with the lambda-z point data.) -
filterCovariates(list) Named list of categorical covariates → allowed values, e.g.list(SEX = "Male", DOSE = c("100","200")). Non-matching rows are dropped. IfNULL(default), no covariate filtering is applied. -
filterIds(character/numeric) Subject IDs to include. IfNULL(default), no ID filtering is applied. -
roundDigits(integer) Number of decimal places for rounding (default3).
-
roundMethod(character) How numeric values are rounded.roundDigitscontrols the number of digits in each case. Options:-
"monolixSuiteRounding"(default) - Mirrors MonolixSuite display. The integer part is kept exactly as-is, and only the fractional part is rounded toroundDigitssignificant figures. Small values (< 1) automatically get more decimal places. -
"significantFigures"- Standard significant-figures rounding: the value is rounded toroundDigitstotal significant digits, zeroing non-significant digits before the decimal for large numbers. -
"significantFiguresPreserved"- Like"significantFigures", but never zeroes digits before the decimal. Once the integer part already has at leastroundDigitsdigits, the value is simply rounded to the nearest whole number instead of being zeroed out. -
"none"- No rounding; values are returned as-is.
-
-
mock(logical) IfTRUE, masks values for documentation/examples:id→"id1", categorical covariates / occasions →"Category 1"/"occ1", and all numeric columns (time,Concentration,UsedConc,Censoring) →"xx.xx". DefaultFALSE.
Examples