Documentation

22.11 Type, reference, and form overrides

Use overrides when automatic defaults do not represent the scientific variable or planned model.

nlmx cov --ctl run101.ctl `
  --covariates "CL=WT,DOSEGRP;V=WT" `
  --covariate-type DOSEGRP=categorical `
  --covariate-reference WT=70 `
  --covariate-reference DOSEGRP=1 `
  --covariate-forms WT=power,linear

--covariate-type accepts continuous, binary, categorical, and ordinal. --covariate-reference accepts a numeric value, median, or mean; for categories it identifies the reference level. --covariate-forms is repeatable and wins over type-level lists. --continuous-forms and --categorical-forms set lists by type; --all-equations requests the standard alternatives unless explicit lists override it.

Reference choice affects coefficient and typical-value interpretation, not merely labels. Select an observed, meaningful, well-supported value. Changing reference after selection is usually a reparameterization but still requires consistent recoding and refitting.

Form order matters when refitted equations are within two AIC units: the first listed form is preferred. Therefore, ordering is an analysis choice. Put the scientifically preferred form first and document it.

Configuration provides additional binary and ordinal lists without CLI equivalents. Use the normalized config to verify final precedence.

Worked override reasoning

Suppose DOSEGRP contains the numeric codes 1, 2, and 3. Treating it as continuous asserts a constant effect per one-code increase; treating it as ordinal imposes ordered structure; treating it as categorical estimates level-specific effects relative to the chosen group. Those are different models, not formatting choices. Likewise, a WT reference of 70 kg makes the typical parameter directly interpretable at 70 kg, whereas median follows the analyzed population and may differ across datasets. Record the resolved numerical reference and level ordering, not only the keyword. Before execution, sketch the equation produced by every override and verify that it remains defined over the observed and clinically anticipated range.

Common mistakes

  • Using an unobserved extreme reference.
  • Overriding type but leaving incompatible forms.
  • Forgetting that per-covariate forms override global lists.
  • Treating form order as cosmetic.
  • Comparing coefficients after changing reference without transformation.

Checklist

  • Justify type and reference overrides.
  • Verify the reference exists and is supported.
  • Review precedence among form settings.
  • Order tied forms prospectively.
  • Confirm the resolved normalized configuration.

Further reading

Continue with centering, form comparison, and the option index.