31.6 Settings files, paths, and command-line precedence
nlmx starts from defaults, reads the .power file, resolves its paths relative to that file, then applies command-line values. CLI paths remain relative to the current working directory. Unknown TOML keys are errors.
What the controls mean
- Generate the complete template with
--print-config FILE.power. - Repeated CLI options such as
--testreplace the file’s test array rather than appending to it. - The executed example proved CLI N=30,60 and target 0.9 replaced file N=25,50 and target 0.8.
The issued command is only the beginning of the audit trail. Always distinguish the reference model, the design template, the resolved scenario, the replicate-specific truth, the fitted result, and the test decision. A value can be correct at one layer and misinterpreted at another.
Command or settings pattern
nlmx power --print-config nlmx.power
nlmx power -c nlmx.power --target-power 0.9
Command-line values override settings-file values. Use a fresh folder for an analytical run; preserve the command, resolved settings, log, checksums, and row-level data. Defaults are versioned behavior, so a production protocol should state important values explicitly.
Interpretation and quality control
Archive both the authored file and power_settings_used.power. The resolved file does not include a positional control stream, so reproduce with the original positional/--ctl input or add [input] control_stream.
For a novice review, first confirm counts and labels, then inspect numerical values, then ask whether the assumptions represent the proposed clinical study. For an expert review, additionally reconcile aggregates from row-level output, reproduce a subset of trials, and compare the implementation with an independent reference where the claim requires it.
Common mistakes
- Assuming relative paths use the launch directory
- Assuming CLI tests append to file tests
- Reporting a point estimate without its denominator, interval, method, and version
Minimum evidence to retain
- nlmx version, command,
.powerfile, resolved settings, seed, threads, and output checksums; - control stream, design dataset, EXT/COV or parameter sets, and their provenance;
- scenario table, replicate rows and failures, method summaries, plots, report, and interpretation;
- prespecified criteria, Monte Carlo target, validation scope, deviations, and reviewer decisions.
Navigation
See the previous page, next page, and complete command and settings index.