Documentation

Equation-form selection before the path

SCM requires one nested coefficient block for each relationship. When several equations are allowed, nlmx first compares them and carries one winner into the stepwise search. --compare-forms auto refits and chooses the lowest-AIC form when more than one exists; refit requests that behavior explicitly; score is faster but cannot reliably distinguish forms whose local behavior is identical, such as linear and exponential at the null.

--all-equations tries continuous power, exponential, and linear forms and categorical proportional/grouped forms as applicable. Spline and standardized-linear forms can be requested explicitly. References and category coding affect coefficient interpretation and sometimes numerical conditioning even when fitted predictions are equivalent.

Form search adds another data-dependent layer. Report every tried equation, AIC, convergence result, winning form, and tie rule. A form rejected before SCM is not reconsidered after other covariates enter, so form and path sensitivity may require separately planned runs.

Equation-form selection before the path

Common mistakes

  • Treating a stepwise p-value as clinical importance or causal proof.
  • Reading a candidate comparison without its active model, convergence state, degrees of freedom, and exact threshold.
  • Reporting only the terminal relationship list while discarding failed models, path decisions, configuration, and provenance.

Page checklist

  • The scientific question, model identities, and comparison direction are explicit.
  • Numerical validity is reviewed before interpreting statistical evidence.
  • The result is linked to the complete trace and final joint-model diagnostics.

Further reading