Documentation

22.9 inspect, validate, schema, and resume

Several companion commands reduce avoidable covariate-analysis errors.

nlmx inspect resolves artifacts and prints detected covariate types, levels, references, equations, parameter mappings, and every candidate equation. Run it before expensive form comparison or SCM refits.

nlmx inspect -c nlmx.covar

nlmx validate exercises the validation pipeline and reports incompatible artifacts, missing covariates, invalid equations, unsupported ranges, and configuration problems without completing the selection analysis.

nlmx schema prints the annotated configuration reference, including detailed covariate and relationship declarations that have no direct CLI equivalent. Pin the schema to the nlmx version used; defaults can evolve.

nlmx resume --run-dir OUTPUT continues supported checkpointed work. Refit caches such as frozen_refits.json and posterior_refits.json can prevent repeated estimations. Resume only when inputs, configuration, method, and software compatibility are verified. The normalized configuration and input manifest are the audit basis.

Dry-run and strict execution also help. --dry-run checks the planned pipeline; --strict promotes warnings to errors. Neither substitutes for reviewing the printed candidate scope.

Treat inspection output as part of the analysis record. It proves which equations and references were available before results influenced decisions.

Reading the preflight result

Preflight is successful only when the resolved files, parameters, covariate columns, types, references, levels, missingness policy, forms, method, and output destination all match the intended analysis. A command that merely exits with status zero is not enough. Save the inspection output with the analysis plan and compare it with normalized_config.covar after execution. For resume, treat the existing run directory as immutable evidence: changes in input hashes, executable version, settings, or candidate scope can invalidate cached refits or posterior replicates. When compatibility is uncertain, begin a new output directory and document the relationship to the earlier run rather than forcing continuation.

Common mistakes

  • Starting SCM before confirming candidate equations.
  • Assuming validate proves scientific plausibility.
  • Resuming with changed inputs or scope.
  • Relying on undocumented configuration defaults.
  • Discarding the pre-analysis inspection record.

Checklist

  • Run inspect and archive the candidate catalogue.
  • Run validation before costly methods.
  • Consult the version-matched schema.
  • Verify resume identity and caches.
  • Review warnings even when strict mode is off.

Further reading

Continue with type detection, outputs, and the complete command index.