Why Examine Covariates in Pairs?
A study can have broad coverage of each covariate considered separately and still contain few participants with particular combinations of covariates. For example, age and body weight may each span a wide range, but older participants might mostly be heavier, leaving few older, lighter participants. That joint pattern matters when describing the study population and considering what comparisons the data can support.
Pairwise covariate displays are exploratory tools for describing dependence, clustering, overlap, and gaps in observed combinations. They do not establish that one covariate causes another, and they do not decide which covariates belong in a pharmacokinetic model. The aim here is to diagnose the structure and coverage of the observed covariate data before model development.
Choose the Display for the Covariate Types
For two continuous covariates, a scatterplot places one covariate on each axis, with one point per participant. Inspect the overall direction and shape, clusters, gaps, unusual points, and whether the spread changes across the range. Use meaningful units and clear axis labels. A transparent or lightly jittered display can help when many participants have the same recorded values.
For two categorical covariates, use a two-way count table, a heat map, or a mosaic-style display. Counts show how much data support each combination; row or column percentages show composition relative to a stated denominator. A zero count is a genuine gap in the observed combination space, while a small positive count indicates sparse coverage. Percentages without counts can hide how little information a cell contains.
For a continuous and a categorical covariate, show the continuous values separately by category, for example with side-by-side boxplots or jittered points overlaid with a summary. This can reveal overlap, shifts, skew, and within-category spread. Always show group sizes: an apparently stable distribution based on a few participants deserves more caution than one based on many.
When the full set of covariates is large, a scatterplot matrix can provide a compact overview of continuous pairs. It should complement, not replace, targeted plots with readable scales and sample counts. For each pair, state the number of participants with usable values for both covariates. If missingness differs across pairs, the plots may describe different subsets of the analysis population.
Correlation as a Summary, Not a Substitute for the Plot
For paired quantitative observations \((x_i,y_i)\), \(i=1,\ldots,n\), the sample Pearson correlation \(r\) summarizes the direction and strength of their linear association. Let \(\bar{x}\) and \(\bar{y}\) be the sample means. Provided neither variable is constant, define:
The value is unitless, between \(-1\) and \(1\). A positive value indicates that larger values of one variable tend to occur with larger values of the other in a linear pattern; a negative value indicates a tendency for larger values of one to occur with smaller values of the other. Values near zero indicate little linear association, not necessarily an absence of other dependence.
Pearson correlation is a descriptive calculation: it does not require normally distributed covariates. Its interpretation as a summary of linear association is most useful when the plot is reasonably linear and not dominated by influential outliers. If making population-level inferences about correlation, additional sampling and distributional assumptions are needed; an exploratory plot and coefficient alone do not provide such an inference.
The limitation follows directly from the formula: it summarizes centered cross-products and cannot encode the full shape of a relationship. A curved pattern can have correlation near zero, and a single extreme point can strongly alter \(r\). Rank correlation, commonly Spearman correlation, is Pearson correlation applied to the ranks of the observations. It can summarize a monotone association that is not linear, but it also compresses the data to one number and should be interpreted alongside the plot.
Worked Example: Calculating a Pairwise Correlation
Suppose, hypothetically, that age and body weight are recorded for five participants. Ages are 20, 30, 40, 50, and 60 years; the corresponding weights are 55, 65, 63, 78, and 79 kg. The observations are paired by participant, and neither variable is constant.
The means are \(\bar{x}=40\) years and \(\bar{y}=68\) kg. The centered values are \((-20,-10,0,10,20)\) years and \((-13,-3,-5,10,11)\) kg. Therefore, \(\sum (x_i-\bar{x})(y_i-\bar{y})=260+30+0+100+220=610\) year-kg, \(\sum (x_i-\bar{x})^2=1{,}000\) year\(^2\), and \(\sum (y_i-\bar{y})^2=424\) kg\(^2\).
In these five hypothetical participants, age and weight have a strong positive linear association. The coefficient does not show that age causes higher weight, does not describe the full pattern, and is fragile as a summary because it is based on only five points. A scatterplot is still needed to check the shape and identify any influential observation.
Read Sparse Combinations Directly
A count display makes joint coverage visible without assuming a particular association measure. For continuous covariates, a plot can show gaps, but a two-dimensional grid may help quantify them. Any such grid depends on chosen cutpoints: report those cutpoints, retain counts, and avoid implying that values within a bin are identical. Binning is a display choice, not a new measurement of the covariate.
Worked Example: Finding Sparse Categorical Combinations
Imagine a hypothetical study with 60 participants classified by study site and genotype category. The two-way counts are:
| Site | Genotype G1 | Genotype G2 | Genotype G3 | Total |
|---|---|---|---|---|
| A | 17 | 12 | 1 | 30 |
| B | 8 | 19 | 3 | 30 |
| Total | 25 | 31 | 4 | 60 |
For Site A, the row percentages are \(17/30=56.7\%\), \(12/30=40.0\%\), and \(1/30=3.3\%\). For Site B, they are \(8/30=26.7\%\), \(19/30=63.3\%\), and \(3/30=10.0\%\). The G3 category is sparse overall, with four participants; the Site A–G3 combination has just one participant. The count table therefore identifies weak joint coverage more clearly than percentages alone.
This is a description of the observed study sample, not proof that site and genotype are associated in a wider population. It also does not mean that the single participant is unimportant or invalid. It means that any interpretation requiring evidence specifically from Site A participants with G3 has very limited direct support in these data.
Worked Example: Comparing a Continuous Covariate Across Groups
Suppose, hypothetically, that body weight is recorded for three participants in each of two sex categories. The values are 52, 60, and 68 kg in one category, and 58, 72, and 86 kg in the other. A grouped dot plot would show all six observations; boxplots could summarize the same groups, though summaries based on three observations per group are unstable.
The first group has median \(60\) kg and range 52–68 kg. The second has median \(72\) kg and range 58–86 kg. The ranges overlap from 58 to 68 kg, so these values do not show complete separation between categories. The group sizes, \(n=3\) each, are essential context: medians and ranges describe these few hypothetical observations but do not establish a stable population difference.
The paired display addresses the relationship between a categorical covariate and a continuous covariate. It should show individual points where feasible, as a boxplot alone can conceal how few observations support a group summary.
Data Structure, Diagnostics, and Common Pitfalls
In population PK data, covariates such as baseline age, baseline weight, or genotype are often participant-level variables, while concentration records may be repeated within a participant. For a pairwise display of participant-level covariates, use one appropriately defined record per participant. Repeating the same baseline covariate on every concentration row would give participants with more records greater visual and numerical weight. For time-varying covariates, decide which time point or summary is scientifically relevant, or display within-participant variation separately rather than treating repeated rows as independent participants.
Before interpreting a pairwise display, check whether both variables are measured on the same analysis population and whether missing values have been handled transparently. Confirm the units, category labels, and any transformations. Look for data errors, but do not remove an unusual observation merely because it weakens a pattern; verify it against source information and retain it unless a documented data-quality rule justifies correction or exclusion.
A major pitfall is treating a small Pearson correlation as evidence that two covariates are unrelated. A U-shaped relationship can have little linear correlation despite clear dependence in the scatterplot. The correction is to inspect the shape and, where appropriate, consider rank correlation as a supplementary summary. Conversely, a large absolute correlation is not a causal result and does not by itself dictate model structure.
Another pitfall is assigning arbitrary numbers to categories and calculating Pearson correlation as though those codes were measurements. Coding categories as 1, 2, and 3 creates an artificial order and spacing unless those properties are genuinely meaningful. Use count displays for two categorical variables and grouped displays for mixed variable types.
Pairwise summaries also have limits. They can reveal pairwise structure but may miss relationships that occur only among three or more covariates. Sparse cells can arise from real study design, recruitment patterns, or the chosen categorization. Correlation can be affected by restricted ranges, outliers, and measurement error. These displays describe the observed data and their coverage; they do not establish causation, resolve confounding, or perform covariate selection.
A Practical Pairwise Review
Identify the participant-level record or the defined time-specific record, and avoid unintentionally counting repeated observations as independent participants.
Use scatterplots for two quantitative covariates, count tables or mosaic displays for two categorical covariates, and grouped point or distribution displays for mixed types.
Check direction, shape, clusters, overlap, outliers, gaps, group sizes, and counts in sparse combinations.
Use Pearson correlation for a quantitative pair when a linear summary is meaningful; consider rank correlation for a monotone pattern. Keep the plot and sample count alongside the summary.
Report the observed dependence and coverage limitations without turning an exploratory display into a causal claim or a covariate-selection rule.
Check Your Understanding
Answer each question, then compare with the solutions below.
- What display is most appropriate for examining two categorical covariates, and why should cell counts accompany percentages?
- A scatterplot has a U-shaped pattern but Pearson \(r\) is close to zero. Is the conclusion that the covariates are unrelated justified?
- A participant has ten concentration records and another has two. Why might calculating a correlation after repeating each participant's baseline weight on every record be misleading?
- In the hypothetical site-by-genotype table, what fraction of Site A participants are in G3, and what does its count imply about coverage?
Solutions. (1) Use a two-way count table, heat map, or mosaic display. Counts show the amount of data behind each percentage and expose sparse cells. (2) No. Pearson correlation summarizes linear association, and a U-shaped dependence can produce a value near zero; inspect the plot. (3) The first participant would contribute five times as many rows, so the calculation would weight participants unequally and treat repeated records as if they were distinct participants. (4) \(1/30=0.0333\), or 3.33%. One participant means that the Site A–G3 combination is sparsely represented, so conclusions specific to that combination have limited direct support.