Documentation

13A.27 Correlation tables: Pearson and Spearman

The correlation kind creates a square matrix for numeric variables. --table-method pearson is the default; spearman correlates ranks. Pearson measures linear association and is sensitive to extremes. Spearman measures monotonic association and is more robust to nonlinear scale and outliers, but still does not establish causality.

The frozen subject-level Spearman matrix includes AGE, WT, CRCL, ETA1, and ETA2 after distinct ID. Without that reduction, baseline variables repeated across observations would overweight subjects and potentially distort correlations.

Missingness can produce different effective pairs if correlations use available values. A visually complete matrix may therefore combine estimates with different N; inspect missingness and prepare a pairwise-N table when necessary. Strong correlation between covariates warns about collinearity but does not determine which covariate belongs in a pharmacometric model.

Correlation of EBEs with covariates is especially vulnerable to shrinkage, model misspecification, and estimation uncertainty. Treat it as exploratory evidence and use the dedicated covariate workflow for selection and uncertainty.

Always pair a large absolute correlation with a scatter plot. A single extreme point, curved relationship, clusters, or site structure can produce the same coefficient for very different reasons. For categorical variables encoded as numbers, ordinary correlation usually has no stable scientific interpretation; use appropriate grouped summaries instead.

Common mistakes

  • Calling correlation causal or predictive.
  • Repeating subject-level values across observation rows.
  • Comparing Pearson and Spearman as if one must be correct.
  • Ignoring different pairwise missing denominators.

Checklist

  • Choose subject, occasion, or record grain deliberately.
  • Select Pearson for linear scale or Spearman for ranks/monotonicity.
  • Review scatter plots and outliers.
  • Report effective N when missingness differs.
  • Use modelling commands for inferential covariate claims.

Further reading

See subject distributions, missingness, Chapter 13's correlation outputs, and the later covariate chapters in the remaining plan.