F.3 eda, custom and nca
What you will learn
- Find a short, checked answer to 15 common questions about exploration and nca.
- Follow the link after each answer to the page that explains it and shows the evidence.
- Recognise the mistakes that these questions come from, so that you do not make them.
Prerequisites: Chapter 13 and Chapter 15 are helpful.
Exploratory plots and tables, your own plots with custom, and non-compartmental analysis: route, area rules, the terminal slope and the quality flags.
Commands named on this page: eda, custom, nca.
How to read an answer. Each answer restates what the book says, in a few sentences, and ends with Read more: the page that explains it, with its evidence. The answers are short on purpose. When a decision depends on one, open the linked page.
The 15 questions on this page
- What is the smallest
edarun? - In what order does
edaapply--mutateand the filters? - What is the difference between
--filterand--obs-filter? - I asked for a plot and it is not in the output. Why?
- How do I see which plots and tables exist?
- When should I use
custominstead ofedaor a dedicated command? - How does
ncaknow the route of administration? - What does the default
ncado about C0 after an intravenous bolus? - Which AUC method is the default, and do the two hybrid rules agree?
- How is the terminal slope (λz) chosen?
- Why is there no AUCinf (or clearance, or MRT) for a profile?
- Which BLQ rule should I use for NCA?
ncafinished with exit code 0, but some profiles are missing from the table. Is that expected?- How does
ncajudge dose proportionality? - Can I run
ncaon sparse or heavily censored data?
Answers
F.3.1 What is the smallest eda run?
A dataset with a header and recognisable ID, TIME and DV columns: nlmx eda data/pk.csv -o results/pk-eda-r01. Without -o the output goes to <dataset folder>/<dataset stem>_eda. Open eda_summary.txt first, then the data-summary and missingness tables, then report.html.
Read more: 13.1 Your first eda run.
F.3.2 In what order does eda apply --mutate and the filters?
The order is fixed: select the input, apply --mutate, read the mutated copy, apply the general filter and the observation filter, classify the records and covariates, derive the EDA columns, then build the plots and tables. A derived column is therefore available to a filter, and the mutated copy is written as <stem>_mutated.<ext>.
Read more: 13.3 Processing order: mutate, filter, and analysis.
F.3.3 What is the difference between --filter and --obs-filter?
--filter keeps the records that satisfy an expression, and it can remove dose records. --obs-filter applies to observations and keeps the dose records, which is usually the safer choice for a rule such as DV > 0 or a PK DVID selection. After any filter, compare the counts of records, subjects and observations before and after.
Read more: 13.3 Processing order: mutate, filter, and analysis.
F.3.4 I asked for a plot and it is not in the output. Why?
Selection does not guarantee generation. A plot may need a PD DVID (P23), BLQ information (P11) or a suitable covariate, and an unavailable item is listed with its reason in eda_summary.txt, the JSON and the report. Exposure items P18–P20 and T06–T07 are off by default even for all: enable them with --eda-exposure or name them.
Read more: 13.8 Selecting standard plots and tables.
F.3.5 How do I see which plots and tables exist?
nlmx eda --list-plots prints the catalogue of plots and tables with stable IDs, names and categories. Use IDs in governed workflows. There are 24 plots (P01–P24) and 10 tables (T01–T10), and the identifier page lists the page that explains each range.
Read more: 13.8 Selecting standard plots and tables; E.4 Identifiers: exit codes, check IDs, plot codes and file extensions.
F.3.6 When should I use custom instead of eda or a dedicated command?
Use custom for a plot or descriptive table of columns you already have, or can derive row by row. Use a dedicated command for longitudinal derivation, estimation, simulation, uncertainty or inference. custom takes one file per run and has no join or reshape, and a subject-level view needs --distinct ID so that subjects with more rows are not weighted more heavily.
Read more: 13A.1 Why and when to use custom.
F.3.7 How does nca know the route of administration?
With route = "auto" a positive RATE marks an infusion, and when CMT is usable a dose into a compartment that also holds observations is intravenous. Without CMT the profile shape is a fallback. Accepted explicit values are oral, iv, bolus, infusion and mixed, and an explicit route wins over inference. Use mixed for an absolute-bioavailability crossover.
Read more: 15.5 Route detection, mixed routes, and C0.
F.3.8 What does the default nca do about C0 after an intravenous bolus?
extrapolate is the default: log-linear back-extrapolation from the first two declining samples, otherwise the first value. observed uses only a sample at time zero, and first uses the first sample's concentration. Set it with [auc] iv_c0 or --c0-method.
Read more: 15.5 Route detection, mixed routes, and C0.
F.3.9 Which AUC method is the default, and do the two hybrid rules agree?
The default is linear-up/log-down: linear integration while the concentration rises or is level and logarithmic integration while it falls, decided segment by segment. Linear-log integrates linearly through Tmax and logarithmically afterwards. They agree on a clean single-peaked profile and differ with rebound, recirculation or noise, which is a signal to inspect the profile.
Read more: 14.6 Linear-up/log-down and linear-log methods.
F.3.10 How is the terminal slope (λz) chosen?
By default best-fit tries nested windows of the last 3, 4, 5 or more eligible points after Tmax, fits ln C on time, and keeps the window with the largest adjusted R². Candidates within 1e-4 are tied and the one with more points wins; the winner must reach an adjusted R² of at least 0.7, and the minimum number of points is 3. Other methods are last-n, time-range and none. Always review nca_lambda_z.csv, which lists every candidate.
Read more: 14.10 Best-fit window selection and adjusted R²; 15.10 Terminal-slope methods and quality thresholds.
F.3.11 Why is there no AUCinf (or clearance, or MRT) for a profile?
Because a precondition failed. The usual reasons are no accepted terminal slope; a span shorter than two half-lives; an extrapolated area above 20 % with extrap_action = "omit" (with "flag" the value is kept and marked AUC_EXTRAP_GT_20); or a BLQ rule that left too few terminal points. These are expected evidence, not a reason to invent a tail.
Read more: 14.13 AUC to infinity and the extrapolated fraction; 15.10 Terminal-slope methods and quality thresholds; 15.8 BLQ, LLOQ, and censoring controls.
F.3.12 Which BLQ rule should I use for NCA?
There are six: zero, missing, lloq, half-lloq, tmax-zero-missing (the default: zero before Tmax, missing from Tmax onward) and first-zero-mid-half-last-missing. The rule changes AUC and the terminal data, so run it as a sensitivity analysis when many samples are censored, and freeze the choice before comparing groups.
Read more: 15.8 BLQ, LLOQ, and censoring controls; 14.20 BLQ rules and sensitivity analysis.
F.3.13 nca finished with exit code 0, but some profiles are missing from the table. Is that expected?
Yes, it can be. Warnings and profile-level skips can happen with a successful exit; read the SKIPPED and STATUS columns and the retained diagnostics. The documented failures of the command are 2 (usage), 3 (files), 4 (settings), 7 (dataset) and 10 (no profile could be analysed). A profile with too few usable observations is skipped.
Read more: 15.26 Errors, exit codes, and troubleshooting; 15.30 Worked example: BLQ-heavy and sparse profiles.
F.3.14 How does nca judge dose proportionality?
It is on by default where the data allow. The default endpoints are Cmax, AUClast and the observed-Clast AUCinf, with a 90 % interval and limits of 0.8 and 1.25. The decision compares an interval with a band and has three possible verdicts, and Chapter 41 shows a worked case.
Read more: 15.14 Dose-proportionality settings and output; 14.18 Dose normalisation and dose proportionality; 41.8 Case 2: is exposure proportional to dose?.
F.3.15 Can I run nca on sparse or heavily censored data?
You get what the data support. In the sparse-BLQ example, six profiles are constructed, five are analysed, and one is skipped for too few usable observations; several analysed rows carry LZ_SPAN_SHORT and AUC_EXTRAP_GT_20. Sparse designs support CMAX, TMAX and AUClast far better than AUCinf.
Read more: 15.30 Worked example: BLQ-heavy and sparse profiles; 14.21 Sparse, destructive, and irregular sampling; 41.9 Case 2: bioavailability from a crossover, and a sparse study with BLQ.
Review checklist
- Do you state the route explicitly when it matters?
- Do you read
nca_lambda_z.csv, and not only the chosen slope? - Do you report AUClast beside AUCinf and the extrapolated percentage?
- Do you freeze the BLQ rule before comparing groups?
Navigation
See the previous page, the next page, the overview, and the complete FAQ reference.