Documentation

18.35 F_FLAG, censored, and user-likelihood records

Gaussian records use \(\log V+(y-Y)^2/V\). With F_FLAG=1, nlmx interprets Y as a likelihood contribution and uses \(-2\log Y\). This supports M3 BLQ probability such as PHI((LLOQ-IPRED)/W). With F_FLAG=2, Y is already a \(-2\log\)-likelihood contribution.

These records are not ordinary continuous observations, so RES/WRES columns are empty. Linearized FO/FOCE methods reject them; Laplace or SAEM is required because the general conditional likelihood must be integrated.

Numerical safeguards matter near probability zero. The likelihood expression, LLOQ scale, censoring indicator and residual SD must match the intended model. Dropping BLQ, substituting half-LLOQ and M3 are different analyses.

Practical interpretation

Construct three test records: prediction far below LLOQ, near LLOQ and far above it. Evaluate the M3 probability and \(-2\log\) contribution by hand or independent code. The values should be finite and change in the expected direction. This detects reversed inequalities, scale mistakes and probability underflow before a full population fit.

Because likelihood records do not have a numeric observed residual in the usual sense, diagnostics should focus on predicted censoring probabilities and simulation-based checks. Do not force them into Gaussian residual plots merely to fill a column.

Validate mixed datasets containing Gaussian and likelihood records, including all-BLQ subjects and probabilities near machine limits. The total subject objective must combine contributions once and retain the same ETA penalty. Compare record-level components before comparing total OFV.

Common mistakes

Do not encode probability outside (0,1], double-log an F_FLAG contribution, or compare M3 OFV with a dropped-BLQ model as though only structure changed.

Checklist

  • Verify F_FLAG per record.
  • Test likelihood values at representative parameters.
  • Use Laplace/SAEM.
  • Align censoring strategy across tools.
  • Exclude likelihood records from ordinary residual plots.

Further reading

See Laplace, Chapter 19 SAEM, and Chapter 27 VPC censoring.