21.20 Logarithmic axes and semi-log diagnostic views
Axis transformation and data back-transformation are different operations. --x-scale log and --y-scale log display positive plotted values on logarithmic axes without changing the stored values. --log-y is equivalent to --y-scale log.
For fit diagnostics, x-scale selection applies to the five standard GOF plots. Y-scale logging applies to DV plots only; residual y axes remain linear and symmetric around zero because residuals can be negative. The identity line remains exact on mixed scales, and LOESS is fitted on the plotted scale.
Log axes can reveal proportional patterns across several orders of magnitude and reduce domination by high concentrations. They also omit nonpositive values. TIME = 0 disappears on a log x axis; zero or negative DV/PRED values cannot appear on a log y axis. Count and disclose those omissions.
nlmx fit run101.ctl --plots --x-scale log --y-scale log
Do not use a log axis merely to make a poor pattern look compact. Review linear and log views when both low and high ranges matter. Keep comparable limits across model runs and strata. For a model fitted on log DV, you may combine back-transformation with log axes, but state both operations clearly: the plotted original-scale values are then displayed logarithmically.
Common mistakes
- Confusing log axes with back-transformed log-DV predictions.
- Forgetting omitted zero/nonpositive values.
- Applying log y axes to residuals.
- Comparing a linear plot with a log plot visually.
- Using a log view to conceal clinically relevant absolute bias.
Checklist
- State stored scale, back-transformation, and axis scale separately.
- Count nonpositive values omitted from display.
- Review both absolute and proportional behavior where needed.
- Hold axis choices constant across comparisons.
- Preserve the exact command in the evidence bundle.
Further reading
See back-transformation, publication controls, and the option index.