20.8 Data input, IGNORE/ACCEPT, and column mapping
$INPUT maps dataset positions to model items, including renamed and dropped columns. NONMEM data items used by the model must be numeric; character columns should be dropped or retained outside model input according to supported mapping. data_columns.csv records position, header, $INPUT name and status.
$DATA IGNORE/ACCEPT filters records using NONMEM semantics. The analysis dataset is the result after mapping/filtering, not merely the raw file. --data changes the file but not $INPUT mapping.
Verify ID grouping, event sorting, numeric missing conventions, DVID and MDV/EVID inference. A repeated ID or dropped EVID can have supported semantics but must be intentional. Compare counts before/after filters.
Build a record-accounting table
Before estimation, count source rows, ignored rows, accepted rows, event rows, observations, missing-DV rows, predose exclusions and subjects. Reconcile the counts with the fit summary. Stratify them by study, arm and outcome where possible; a globally correct count can still hide loss of an entire subgroup.
$INPUT is positional even when labels appear familiar. Confirm the generated data_columns.csv against the actual header and every alias/drop rule. Numeric-looking identifiers may lose formatting if preprocessed elsewhere, and locale-specific decimals or missing-value tokens can change parsing. Preserve the original data bytes and perform transformations in a traceable preprocessing step.
IGNORE and ACCEPT are part of the statistical analysis, not cosmetic parsing. Translate complex conditions into explicit test cases at boundary values. Document precedence when both mechanisms appear, and verify that comparator strings and numeric values are interpreted as intended. Never infer filtering solely from the number of final observations.
Common mistakes
Do not place character values in kept NONMEM input, reorder columns without changing $INPUT, or assume header names override positional mapping. Avoid filtering observations while accidentally removing dose history.
Checklist
- Reconcile header positions with
$INPUT. - Review dropped/renamed items.
- Reproduce IGNORE/ACCEPT counts.
- Confirm ID/event sorting.
- Archive
data_columns.csvand checksums.
Further reading
See Chapters 11–12 for QC, event dosing, and data/output artifacts.