Tutorials › Population Pharmacokinetics › Missing and Misclassified Covariate Records

Sex, Race, Genetics and Co-medications · Tutorial 269 of 599

Missing and Misclassified Covariate Records

Learn to represent missing covariate records explicitly, assess misclassification, and check whether population PK conclusions are robust to plausible alternative codings.

Intermediate 11 min read

What You'll Learn

  • Distinguish an unrecorded covariate from a recorded category and a possibly incorrect classification.
  • Use an explicit missingness indicator without treating it as a general correction for missing data.
  • Explain how covariate misclassification can change estimated population PK effects.
  • Compare complete-record, missing-category, and imputation approaches.
  • Plan coding checks for sex, race, genotype, and time-varying co-medication records.
  • Identify diagnostics that may reveal informative missingness or classification errors.

Why Covariate Record Quality Matters

A population PK covariate model relates a recorded characteristic to a population parameter, such as clearance. That relationship is only as meaningful as the records used to define the characteristic. A blank genotype field is not the same as a reference genotype, and a co-medication listed without reliable dates may not establish whether the patient was exposed at the time of a concentration measurement. Treating either record as if it were known can alter both the estimated covariate effect and the interpretation of the model.

Three situations need to be kept distinct. A covariate can be missing, meaning its value was not recorded or cannot be determined from available data. It can be misclassified, meaning a value was recorded but differs from the relevant true or intended value. Or it can be measured correctly but coded in a way that does not represent the scientific question, such as marking a patient as exposed throughout a study based on a medication history that does not include dates. These problems require different checks.

Definition: Let \(Z_i\) be the covariate value relevant to patient \(i\), and let \(Z_i^{\mathrm{rec}}\) be the recorded value. A missing record means \(Z_i^{\mathrm{rec}}\) is unavailable. Misclassification means \(Z_i^{\mathrm{rec}}\) is available but differs from \(Z_i\). A missingness indicator \(M_i\) equals 1 when the covariate record is missing and 0 when it is observed. The indicator records the observation process; it does not reveal the missing value.

Put Missingness Into the Model Explicitly

For illustration, consider a binary covariate \(Z_i\), such as a recorded genotype carrier status, and a clearance model:

$$ CL_i=CL_{\mathrm{pop}}\exp(\beta Z_i+\eta_i), \qquad \eta_i\sim N(0,\omega^2). $$

Here \(CL_{\mathrm{pop}}\) is the typical clearance for the reference covariate value, \(\beta\) is the log clearance ratio for \(Z_i=1\) versus \(Z_i=0\), and \(\eta_i\) is an individual random effect. The model presumes that the covariate is correctly recorded and available for each patient included in this expression. If a missing value is silently coded as \(Z_i=0\), the model asserts that the patient belongs to the reference group. That is not a neutral choice.

One explicit missing-category parameterization defines \(Z_i^*=Z_i^{\mathrm{rec}}\) for observed records and sets \(Z_i^*=0\) for missing records. It then includes both \(Z_i^*\) and \(M_i\):

$$ CL_i=CL_{\mathrm{pop}}\exp(\beta Z_i^*+\gamma M_i+\eta_i). $$

Under this coding, \(\beta\) compares recorded covariate groups among patients with observed records, conditional on the model, while \(\gamma\) represents the modeled difference between patients with missing records and observed reference-group patients. It is an association with record status, not an estimate of the effect of the unknown covariate values. If missingness is related to the unobserved value or to PK outcomes in ways the model does not capture, adding \(M_i\) does not remove that bias.

The interpretation also depends on the chosen reference and coding. For a categorical variable with several recorded levels, a missing category can be represented with an indicator alongside the indicators for observed levels. For a time-varying co-medication, \(M_i\) may be insufficient: whether the medication status is missing can vary by occasion, so the missingness and exposure indicators may need to be defined at the occasion level.

Worked Example: Separating Observed Genotype and Missing Records

Hypothetical data: In a population PK analysis, 60 patients have recorded non-carrier status, 20 have recorded carrier status, and 20 have no genotype result. Suppose a fitted model using the coding above estimates typical clearances of 5.0 L/h for observed non-carriers, 6.0 L/h for observed carriers, and 7.5 L/h for the missing-record group. Interpret the fixed-effect coefficients.

The carrier-to-non-carrier clearance ratio is \(6.0/5.0=1.20\). Therefore,

$$ \hat{\beta}=\ln(1.20)=0.1823. $$

The model estimates clearance 20% higher for recorded carriers than for recorded non-carriers, conditional on the model. The missing-record-to-non-carrier ratio is \(7.5/5.0=1.50\), so

$$ \hat{\gamma}=\ln(1.50)=0.4055. $$

This second coefficient says the missing-record group has an estimated typical clearance 50% higher than the observed reference group under this parameterization. It does not say that missing patients are carriers, nor that the genotype causes the difference. The missing group may differ for other reasons, including site, disease severity, or the process by which testing was obtained.

Missingness Assumptions and Alternatives

A useful analysis asks why values are missing and what information is available about that process. Missing completely at random means the probability a value is missing does not depend on observed or unobserved data. Missing at random means that, conditional on observed information included in the analysis, missingness does not depend on the missing value itself. Missing not at random means missingness still depends on the unobserved value after conditioning on the observed information. These are assumptions about the data-generation process; a table of observed records cannot prove which one holds.

Complete-record analysis excludes patients with missing values for the covariate being analyzed. It is straightforward, but can lose precision and can be biased if inclusion in the complete-record subset is related to the outcome or covariate after conditioning on the model. A missing-category indicator retains those patients and can make record status visible in the fitted model, but does not recover their covariate values. Multiple imputation instead draws plausible missing values from a specified imputation model, repeats the PK analysis across completed data sets, and accounts for both within-imputation and between-imputation uncertainty. Its validity depends on a suitable imputation model and defensible assumptions about missingness; in PK applications, that model should preserve relevant covariate relationships, time structure, and uncertainty rather than treating one filled-in value as known.

For records that may be misclassified, alternatives include checking source records, restricting to high-confidence classifications, and fitting a model that explicitly represents classification uncertainty when sensitivity and specificity information is available. A simple coding sensitivity analysis is often a practical first step, but it is not a substitute for validation data when the error rate itself matters.

How Misclassification Changes an Estimated Effect

If a binary covariate is recorded incorrectly, some patients are assigned to the wrong group. Under a simple setting in which errors are independent of the PK outcome conditional on the true group, mixing the groups often pulls their observed difference toward each other. The extent depends on the true group frequencies and the sensitivity and specificity of classification. This familiar direction is not guaranteed in a real population PK analysis: differential errors, confounding, nonlinear model structure, and uneven subgroup representation can attenuate, exaggerate, or reverse an estimated association.

A short mixture calculation shows the mechanism. Suppose the true carrier prevalence is \(p\), sensitivity is \(Se=P(Z^{\mathrm{rec}}=1\mid Z=1)\), and specificity is \(Sp=P(Z^{\mathrm{rec}}=0\mid Z=0)\). The fraction of recorded carriers who are truly carriers is

$$ P(Z=1\mid Z^{\mathrm{rec}}=1) = \frac{Se\,p}{Se\,p+(1-Sp)(1-p)}. $$

The denominator includes both correctly recorded carriers and non-carriers incorrectly recorded as carriers. Thus, the recorded carrier group is a mixture unless classification is perfect. The recorded non-carrier group is also a mixture whenever sensitivity is below 1.

Worked Example: A Misclassified Genotype Blurs a Clearance Difference

Hypothetical illustration: Suppose true carriers have typical clearance 7.5 L/h, true non-carriers have 5.0 L/h, and 40% of patients are true carriers. Assume genotype sensitivity is 80% and specificity is 90%. For a simple arithmetic-mean illustration, assume these group clearances apply to all patients in each true group and classification errors do not otherwise depend on clearance.

Out of a conceptual 100 patients, 40 are carriers: \(0.80(40)=32\) are recorded as carriers and 8 as non-carriers. Of 60 non-carriers, \(0.90(60)=54\) are recorded as non-carriers and 6 as carriers. The recorded-carrier group therefore contains 32 true carriers and 6 non-carriers. Its mean clearance is

$$ \frac{32(7.5)+6(5.0)}{32+6} = \frac{270}{38} = 7.105\ \mathrm{L/h}. $$

The recorded-non-carrier group contains 8 true carriers and 54 non-carriers, giving

$$ \frac{8(7.5)+54(5.0)}{8+54} = \frac{330}{62} = 5.323\ \mathrm{L/h}. $$

The observed ratio is \(7.105/5.323=1.335\), compared with the true ratio \(7.5/5.0=1.50\). In this simplified example, misclassification reduces the apparent difference. These arithmetic means illustrate group mixing; they are not a formula for the estimate from every nonlinear mixed-effects model.

Alternative Coding Checks and Diagnostics

A coding check asks whether reasonable alternative representations of the same records materially change the estimated PK relationship. The alternatives should be motivated by actual ambiguities, not selected after looking for the most favorable result. Examples include different defensible mappings for an uncertain race or ethnicity label, a genotype carrier indicator versus a dosage representation when genotype calls support it, or a co-medication status based on exposure at the PK occasion versus a broader history window. For sex records, verify the source, the meaning of the recorded field, and how unknown or unavailable values are handled rather than silently assigning them to a reference category.

Useful diagnostics include tabulating missingness and category counts by study site, visit, subgroup, and relevant PK sampling period; checking whether missing records cluster in particular calendar periods or data sources; and comparing covariate distributions among included and excluded patients. For co-medications, inspect start and stop dates against PK sampling times. For genotypes, examine call quality and discrepancies across sources where available. These checks can identify patterns consistent with record-process differences, but cannot establish the true missingness mechanism or error rate by themselves.

Compare estimates and uncertainty under prespecified approaches, such as complete records, explicit missing-category coding, and a justified imputation analysis. Examine whether the population parameter estimates and individual predictions change in scientifically important ways, not merely whether a significance threshold is crossed. Large changes signal dependence on record assumptions and should temper interpretation. Similar estimates provide reassurance only about the alternatives examined, not proof that all records are correct.

Worked Example: Checking Co-medication Timing Definitions

Hypothetical analysis: In a longitudinal PK data set, medication dates are incomplete for 12 of 80 patients. Investigators prespecify two defensible exposure definitions for the other 68 patients: exposure on the day of a PK sample, and any documented exposure during the treatment period. The fitted typical-clearance ratios for exposed versus unexposed patients are 0.78 (95% confidence interval 0.65 to 0.94) under the sample-day definition and 0.91 (95% confidence interval 0.76 to 1.09) under the treatment-period definition. An explicit missing-record indicator is used in each fit.

Under the sample-day definition, the estimated ratio is 0.78, corresponding to estimated clearance 22% lower in the exposed group, since \(1-0.78=0.22\). The interval excludes 1. Under the broader definition, the estimated ratio is 0.91, corresponding to an estimated 9% lower clearance, and the interval includes 1. The estimates differ enough to show that the apparent association depends on how exposure timing is defined. Neither interval establishes that the medication caused a clearance change, and the missingness indicator does not supply the 12 patients’ unknown exposure histories.

The appropriate next step is to report the definitions, investigate the date gaps, and avoid presenting one coding as definitive without supporting records or assumptions. If missingness is related to actual medication use or PK response, a more explicit model of the record process may be needed.

Common Pitfall and Practical Limits

Wrong reasoning: “I added a missingness indicator, so patients with missing genotype data are accounted for and the genotype effect is unbiased.” This confuses a flag for missingness with knowledge of the missing genotype. The indicator can estimate a difference associated with being missing, but it does not identify which genotype those patients carry. Correcting bias requires assumptions and information sufficient for the chosen method, and those assumptions should be stated.

A second pitfall is treating a sensitivity analysis as a search for a preferred answer. Alternative codings are informative when they correspond to credible interpretations of records and are reported transparently. They cannot diagnose every data error, and sparse subgroups may make estimates unstable even when coding is correct. In a nonlinear mixed-effects model, conclusions also depend on the structural and random-effects assumptions; record-quality checks do not validate those other assumptions.

A practical sequence is to define the scientific covariate and time window, distinguish missing from uncertain or misclassified records, summarize record patterns, choose an analysis that matches plausible assumptions, and compare prespecified alternatives. Report the number of records affected and describe how the estimates change. This makes clear which conclusions are supported by the observed data and which rely on unverifiable coding or missingness assumptions.

Key takeaway: A missingness indicator can make absent records explicit, but it cannot reveal their values. Misclassification mixes covariate groups, and alternative coding checks assess robustness only to the assumptions they actually vary.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A binary genotype record is blank for some patients. What does an indicator \(M_i=1\) establish, and what does it not establish?
  2. In the misclassification example, why was the recorded-carrier mean clearance below the true-carrier clearance of 7.5 L/h?
  3. When might complete-record analysis produce a biased covariate estimate?
  4. A medication history says a patient used an inhibitor at some time, but dates are unavailable. Give two distinct exposure codings that could be checked and state one limitation.

Solutions. (1) \(M_i=1\) establishes that the genotype record is missing under the defined data rule; it does not identify the patient’s genotype. (2) The recorded-carrier group included 6 true non-carriers as well as 32 true carriers, so its mean was a mixture: \([32(7.5)+6(5.0)]/38=7.105\) L/h. (3) Bias can arise if having a complete record is related to the covariate or PK outcome after conditioning on the analysis model; exclusion can also reduce precision. (4) One could define exposure using only documented sample-day use or using any documented use during the treatment period. The record cannot establish the true timing, so either coding may misclassify exposure and the comparison does not prove a medication effect.

Clinical Biostats