6.2 $INPUT mapping, aliases and DROP
With a control stream, nlmx follows NONMEM's positional model: $INPUT assigns meaning to column 1, column 2 and so on. The physical header is displayed beside that mapping and helps detect shifts, but the model refers to $INPUT names.
Aliases
An item such as ID=SUBJECT makes both names aliases for the same position. The Chapter 6 mapping fixture pairs this control stream:
$INPUT ID=SUBJECT TIME=NOMINAL_H AMT=DOSE_MG DV=CONC \
EVID=EVENT MDV=MISSING CMT=COMP COMMENT=DROP
with a header beginning:
SUBJECT,NOMINAL_H,DOSE_MG,CONC,EVENT,MISSING,COMP,COMMENT,EXTRA
The recorded fit reports seven kept columns, one dropped column and one column beyond $INPUT that is ignored. Three rows become one subject, one dose and two observations.
DROP and SKIP
A dropped $INPUT item occupies its physical position but is unavailable to the model, reserved-item machinery and covariate analysis. It can still be referenced by a $DATA IGNORE or ACCEPT condition because those filters operate on physical input positions before the kept model view is constructed.
If a header calls a dropped position COMMENT, model code cannot use COMMENT. Removing =DROP changes the model-visible width and requires the field to be numeric in the control-stream reader.
Columns after the last $INPUT item are ignored. This can conceal a new variable appended to a dataset. Add it to $INPUT deliberately if it should affect the analysis.
Shift detection
nlmx compares familiar reserved header names such as ID, TIME, DV, AMT and EVID with their $INPUT positions. When the header places one of these names in a different position, it warns that the list may be shifted. The warning is a strong indication of a missing or extra $INPUT item; it is not repaired automatically.
The command output includes a mapping table with physical position, data header, $INPUT name and status: kept, renamed, dropped or not in $INPUT. Preserve this table in cross-software comparisons.
Required items
The control-stream reader requires kept ID and TIME. Other reserved items are optional and receive defaults described in Section 6.5. A DATE, DAT1, DAT2 or DAT3 item that is not dropped is refused; nlmx requires a numeric TIME column.
Assumptions and limits
Mapping verifies names and positions, not units. A correctly mapped TIME column in minutes will still be wrong for a model parameterised per hour unless the workflow converts it.
Common mistakes
- Trusting the physical header instead of
$INPUTposition. - Removing a dropped placeholder and shifting every following item.
- Appending a covariate to the data without adding it to
$INPUT. - Keeping a character column in the model-visible list.
- Ignoring a reserved-name shift warning.
Checklist
- The mapping table was inspected.
- Every physical placeholder has a
$INPUTitem or intentional ignored status. - Character columns are dropped for model reading.
-
IDandTIMEare kept. - Units are checked independently from names.
Further reading
See the captured txtmapping.txt for the executable example. Section 6.3 describes what values are legal after the mapping is established.