Documentation

31.21 Replicate counts and Monte Carlo precision

Replicate counts and Monte Carlo precision

--replicates is the number of alternative virtual trials per scenario. Default is 100; 500–1,000 is a typical reporting range, but the required count should come from an interval-width target and expected failures.

What the controls mean

  • MC SE is sqrt[p(1−p)/R].
  • Wilson intervals are reported for primary power.
  • The executed 12-replicate run produced non-monotone 0.750, 0.583, 0.917 estimates despite monotone FIM.

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

--replicates 1000

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

Do not interpolate a final N until intervals and point-to-point noise are acceptable. Expand only under a prespecified sequential rule.

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

  • Ranking close designs from tiny R
  • Confusing more simulation replicates with more trial subjects
  • Reporting a point estimate without its denominator, interval, method, and version

Minimum evidence to retain

  • nlmx version, command, .power file, 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.

See the previous page, next page, and complete command and settings index.