library(tidyverse)
library(nlmixr2)
library(nlmixr2data)
data(
"theo_sd",
package = "nlmixr2data"
)Why Covariate Models Matter
Big picture: Population models describe variability. Covariates attempt to explain part of it.
Learning Objectives
By the end of this lesson, you will be able to:
- explain what a covariate is
- distinguish random effects and covariate effects
- recognize common PK covariates
- explain explained versus unexplained variability
- understand why covariates improve model interpretation
Key Ideas
- subjects differ systematically
- covariates explain part of variability
- ETA usually remains after covariates
- covariates improve interpretation
- covariates do not eliminate uncertainty
Setup
Why Covariates Exist
Suppose we estimate:
Typical CL = 3
but observe:
Subject A = 2
Subject B = 4
Question:
Random difference?
or
Systematic explanation?
Example:
Higher weight → higher clearance
Covariates attempt to answer that question.
Worked Example 1: Variability Before Covariates
From the previous module:
Individual Parameter = Typical Parameter + ETA
Example:
CL_i = 3 + ETA
ETA represents variability.
But ETA alone does not explain why variability occurs.
Worked Example 2: Introduce Covariates
Now extend the idea.
Individual Parameter = Typical Parameter + Covariate Effect + Remaining ETA
Example:
CL_i = Typical CL + Weight Effect + Remaining ETA
Interpretation:
- covariates explain systematic differences
- ETA captures remaining unexplained variability
Population models contain both.
Worked Example 3: Common PK Covariates
Examples include:
| Covariate | Possible Influence |
|---|---|
| Weight | CL, V |
| Age | CL |
| Sex | CL |
| Renal Function | CL |
| Liver Function | CL |
| Disease Severity | PK behavior |
| Concomitant Medication | Exposure |
These relationships should make biological sense.
Not every measurable variable becomes a useful covariate.
Worked Example 4: Explain Variability Conceptually
Before adding covariates:
Typical CL + Large ETA
After adding covariates:
Typical CL + Weight Effect + Smaller ETA
Goal:
Unexplained Variability → Explained Variability
Notice:
ETA may still remain.
Covariates usually explain only part of variability.
Worked Example 5: Covariates Are Not Diagnostics
Covariates answer:
Why do subjects differ?
Diagnostics answer:
Did the model behave well?
These are different questions.
Workflow:
Variability → Covariates → Diagnostics
Covariates vs Random Effects
Population models contain multiple components.
| Component | Interpretation |
|---|---|
| Fixed effects | typical population values |
| Covariates | systematic differences |
| ETA | remaining variability |
| Residual error | observation variability |
These components work together.
Covariates Are Not Automatic
Questions to ask before adding covariates:
- biologically plausible?
- measurable?
- interpretable?
- useful?
Statistical significance alone is not enough.
A covariate should improve understanding.
Population Thinking
Covariates do not create fully individualized models.
Instead:
Population → Subgroups → Individuals
Population understanding remains the goal.
Connect to Variability
Recall:
ETA = unexplained variability
Covariates attempt to reduce ETA.
Conceptually:
Large ETA → Covariate → Smaller ETA
This does not guarantee a better model.
But it may improve explanation.
Looking Ahead
Today we introduced:
Explained Variability
Next we ask:
How do we identify candidate covariates?
The next lesson introduces exploratory covariate visualization.
Strategies
- start with biology
- think mechanistically
- explain before optimizing
Common Mistakes
- overfitting covariates
- removing all ETA
- ignoring plausibility
- confusing explanation with prediction
Practice Problems
What is a covariate?
Why are random effects insufficient?
Give three common PK covariates.
Explain:
Individual Parameter = Typical Parameter + Covariate + ETA
- Why do covariates usually not eliminate variability?
Problem 1
A covariate explains systematic differences between subjects.
Examples include:
- weight
- age
- renal function
Problem 2
Random effects describe variability.
Covariates explain variability.
Problem 3
Examples:
- weight
- sex
- renal function
Many others are possible.
Problem 4
Interpretation:
Typical Parameter → Population Average
Covariate → Systematic Adjustment
ETA → Remaining Variability
Population models combine all three.
Problem 5
Not all variability is measurable.
Some unexplained variability usually remains.
Summary
- covariates explain variability
- ETA usually remains
- biology guides covariate selection
- covariates improve interpretation
- Covariates explain
- ETA remains
- Biology first
- Significance is not enough