29.9 Estimation method, base fit, covariate fit, and --no-fit
Design and existing-data modes can write and run FO, FOCE, FOCE-I, Laplace, or SAEM. The chosen approximation is encoded in every control stream and used by the fits. run101 is the base model; --covariate-model in synthetic mode or --effects in existing-data mode can add run102. --no-fit stops after data/control/settings creation, leaving starts at truth for synthetic projects.
Why this matters
The choice on this page changes either the generated truth, the information available to the fit, the analysis decision rule, or the denominator of an operating characteristic. A novice should be able to point to the corresponding setting and output column. A reviewer should be able to trace every aggregate back to a generated project, completed engine run, and relationship-level row.
Detailed behavior
automeans FOCE-I for a described design; aliases such as focei and foce_i are accepted.- SAEM adds an importance-sampling objective record and usually costs more runtime.
- Final estimates are rewritten as starts in fitted control streams, with boundary estimates nudged inside strict THETA bounds.
- Preset projects keep their defined method;
--approximationwithout a described design is refused rather than ignored.
Keep four layers separate: design truth defines what was generated; realised data contain finite random variation; fitted artifacts estimate the model from those data; and analysis decisions classify relationships under a method and threshold. Mixing these layers is the most common source of incorrect recovery claims.
Example command or settings fragment
nlmx generate -o fitted --structure 2cmt-oral --approximation laplace --covariate-model
nlmx generate -o design_only --structure 3cmt-infusion --ode --no-fit
Begin with an inexpensive smoke run, inspect every generated artifact and warning, and only then increase subjects, scenarios, engines, or replicates. Use a new output directory for each analytical run. In a regulated or validation setting, preserve both the command as issued and the resolved settings or generated configuration because defaults and precedence are versioned behavior.
Interpretation and quality control
A generated fit still requires convergence and covariance review. --no-fit is useful for teaching design/control-stream construction or deferring compute, but downstream methods that need EXT/COV cannot run until the model is fitted.
At minimum, verify subject/record counts, truth coefficients and forms, fit convergence, covariance status, relationship scope, classifications, completed denominators, and checksums. Read the row-level result before trusting a scenario metric. A graph is a compact diagnostic view; numerical tables remain authoritative.
Common mistakes
- Treating
--no-fitoutputs as fitted artifacts - Comparing OFVs from different approximation definitions without context
- Ignoring a covariance failure in synthetic recovery
Also avoid describing a failed or skipped cell as a zero rate. Missing, undefined, failed, rejected, and uncertain are different states and must remain distinguishable.
Evidence to retain
- nlmx version, command, configuration, seed behavior, threads, and runtime environment;
- generated truth/control stream, data, group/design definition, base and optional covariate fits;
- engine settings, relationship scope, row-level results, summaries, metrics, report, failures, and completed denominators;
- checksums, scripts used to regenerate figures, tolerances, acceptance rules, and scoped interpretation.
Navigation
See the previous page, next page, and complete command and settings index.