Documentation

11.21 Levels, outliers, correlation and derived covariates: COV05–COV11

COV05 compares categorical values with expected levels and warns about levels represented by fewer than the configured three subjects. Rare is not wrong, but it affects estimability and privacy.

COV06 uses Tukey fences at three IQRs for continuous values. COV07 reports covariates with more than one value. COV08 warns at absolute Pearson correlation 0.8 for continuous variables or Cramér's V for categorical association. Correlation does not prove redundancy; it warns about unstable separate effects.

COV09 compares derived BMI/BSA with weight/height using a default 10% relative tolerance. COV10 detects suspicious AGE/WT/HT magnitudes suggesting unit errors. COV11 warns when a time-varying covariate changes more than 50% between records.

Explicit dictionaries

Declare categorical levels:

[covariates.levels]
SEX = [0, 1]
RACE = [1, 2, 3, 4]

An unexpected 9 may mean unknown/not reported, not a new biological category. Preserve its semantics explicitly.

Interpret association carefully

COV08 is a screening signal for design redundancy or confounding. Weight and BSA may be highly correlated because one is calculated partly from the other; study and treatment can be perfectly associated by design. Before dropping a variable, examine the scientific purpose, missingness, coding and planned parameter relationships. For categorical variables, Cramér's V measures association without an ordered direction. The report cannot decide which variable belongs in a model.

For COV09, recompute with the same formula and unit convention used in derivation. Several BSA formulas exist, so a documented formula difference is not automatically a transcription error.

Common mistakes

  • Collapsing rare categories without clinical/statistical justification.
  • Deleting continuous outliers automatically.
  • Treating high correlation as a data error.
  • Recomputing BMI with mismatched weight/height units.

Checklist

  • Compare codes with the data dictionary.
  • Source-check outliers and rapid changes.
  • Review correlation before multivariable modeling.
  • Recalculate derived fields using documented formulas/units.

Further reading

See covariate type/reference, covariate diagnostic tables and case study.