17.23 model_comparison.csv schema
model_comparison.csv is the machine-readable center of a screen. Each row is one candidate. The identity fields are MODEL, DESCRIPTION, ADVAN, NCMT, ABSORPTION, and LAG. Together they state the generated structure rather than relying on an informal label.
Fit-state fields include STATUS, CONVERGED, SECONDS, and ERROR. Likelihood/count fields are OFV, N_PARAMETERS, N_OBS, N_SUBJECTS, and N_PARAMETERS_RANDOM. Ranking fields are AIC, BIC, DELTA, and WEIGHT. Recalculate these from full-precision values during QC.
Reliability fields include COVARIANCE_STEP, CONDITION_NUMBER, CONDITION_NUMBER_ALL, MAX_RSE_PCT, MAX_RSE_PARAMETER, MAX_RSE_ERROR_PCT, MAX_ETA_SHRINKAGE_PCT, and EPS_SHRINKAGE_PCT. Decision fields are FLAGS, ELIGIBLE, and RECOMMENDED. Blank cells are not zero; they can mean unavailable because a step failed or was not requested.
Import identifiers as text and booleans deliberately. Extremely small p-like weights may be serialized with many zeros, so use a numeric type that can retain exponent-scale values. Preserve the original CSV and create derived analysis tables separately.
For QC, test invariants: exactly one row should have RECOMMENDED=1 when a recommendation exists; a recommended row should be eligible; delta should be zero for the minimum criterion row, subject to eligibility semantics; and AIC should equal OFV plus twice the parameter count within numeric tolerance. Confirm SECONDS is nonnegative and an error message accompanies failed status where expected.
Schema evolution matters. A later build may add a flag, rename a column, or refine counting. Automation should validate required columns by name, tolerate documented additions, and fail loudly when semantics change. Save the nlmx version alongside every imported table.
Common mistakes
Do not sort only by BIC and lose eligibility, convert missing condition numbers to zero, or infer convergence from a finite OFV. Spreadsheet software may round long values or alter model names; validate types after import.
Checklist
- Confirm one row per requested/resolved candidate.
- Verify shared observation and subject counts.
- Recalculate AIC and selected BIC variant.
- Cross-check flags, eligibility and recommendation.
- Preserve full precision and checksum.
Further reading
Read summary and LRT outputs and output bundle diagram.