Tutorials › Pharmacometrics › Time-Varying Covariates in PK/PD Models
Pharmacokinetics · PK/PD Foundations

Time-Varying Covariates in PK/PD Models

Learn how changing patient characteristics, biomarkers, disease states, dosing conditions, and physiologic measurements can be incorporated into pharmacokinetic and pharmacodynamic models when their values change over time.

Intermediate PK/PD Modeling Population PK Time-Varying Covariates
01 · The big picture

1. What Is a Time-Varying Covariate?

A time-varying covariate is a predictor whose value changes during the period represented by a pharmacokinetic or pharmacodynamic model. Instead of treating a covariate as one fixed number for an individual, the model allows its value to depend on time.

Examples include renal function, body temperature, disease biomarkers, inflammatory markers, tumor burden, blood pressure, body weight, concomitant medication exposure, and other physiologic or clinical measurements.

Covariate e.g., renal function PK/PD model CL(t), V(t), Emax(t), or other model components C(t), E(t) predicted trajectory The covariate may change continuously or at discrete observation times

A time-varying covariate can alter one or more model components as its value changes, producing a dynamic PK or PD prediction.

Core idea: a time-varying covariate is not simply another baseline predictor. Its changing value can alter the model's behavior at different points in time.
02 · Why they matter

2. Why Use Time-Varying Covariates?

Many biological processes evolve during a study. A baseline measurement can be informative, but it may fail to represent an individual's state later in treatment.

Suppose renal function declines during treatment. If clearance depends on renal function, a model using only baseline renal function cannot directly represent the subsequent change in clearance. A time-varying covariate provides a mechanism for doing so.

Changing variablePotential PK/PD relationshipExample interpretation
Renal functionClearanceClearance may change as kidney function changes
Body weightClearance or volumeDisposition parameters may depend on current body size
Disease biomarkerProduction or eliminationChanging disease activity may alter biomarker turnover
Inflammatory markerClearance or enzyme activityInflammation may alter drug disposition
Concomitant treatmentClearance or effectDrug-drug interaction effects may begin or end during treatment
Disease burdenDrug effectBaseline disease severity and current disease state may modify response

The scientific question should determine whether a covariate needs to vary with time. A changing variable should not automatically be included as time-varying simply because repeated measurements are available.

03 · Baseline versus dynamic

3. Baseline Covariates Versus Time-Varying Covariates

A baseline covariate has one value assigned to an individual for the analysis. A time-varying covariate has a value that can change during the modeled period.

FeatureBaseline covariateTime-varying covariate
ValueOne value per individualPotentially different values over time
NotationXiXi(t)
ExampleBaseline body weightCurrent body weight
Model roleExplains between-person differencesCan explain within-person changes over time
InterpretationAssociation with the parameter at baseline-defined statusAssociation between the evolving covariate and model behavior
Important distinction: repeatedly measuring a variable does not by itself make it a valid time-varying covariate. The model must specify how the changing measurements affect the PK or PD system.
04 · Mathematical representation

4. Representing a Covariate as a Function of Time

Let \(X_i(t)\) denote a time-varying covariate for individual \(i\). A simple covariate relationship can be written as:

\[ CL_i(t)=CL_{\mathrm{typ}}\left(\frac{X_i(t)}{X_{\mathrm{ref}}}\right)^\theta \]

Here, \(CL_{\mathrm{typ}}\) is a reference clearance, \(X_{\mathrm{ref}}\) is a reference covariate value, and \(\theta\) describes the relationship between the covariate and clearance.

If \(X_i(t)\) changes, the predicted clearance changes accordingly.

For a linear relationship, an alternative formulation is:

\[ CL_i(t)=CL_{\mathrm{ref}}+\theta\left[X_i(t)-X_{\mathrm{ref}}\right] \]

The appropriate functional form depends on the biological process, scale of the covariate, and empirical evidence.

05 · Dynamic PK

5. Time-Varying Covariates Inside a PK Differential Equation

The most important consequence of a time-varying covariate is that it can make a model parameter itself time-dependent.

Consider a one-compartment model:

\[ \frac{dA(t)}{dt}=-CL(t)\frac{A(t)}{V} \]

If clearance depends on a changing covariate:

\[ CL(t)=CL_{\mathrm{typ}}\left(\frac{X(t)}{X_{\mathrm{ref}}}\right)^\theta \]

then the differential equation becomes:

\[ \frac{dA(t)}{dt} = -CL_{\mathrm{typ}} \left(\frac{X(t)}{X_{\mathrm{ref}}}\right)^\theta \frac{A(t)}{V} \]

The drug amount at a particular time therefore depends not only on the current covariate value but also on the history of the covariate through the differential equation.

Dynamic-system principle: when a covariate changes a rate parameter, the effect of that covariate can propagate through the entire future trajectory of the system.
06 · Practical implementation

6. Continuous and Piecewise-Constant Covariates

Time-varying covariates can be represented in different ways. One approach is to treat the covariate as a continuously varying function. Another is to use measured values over intervals and assume the covariate remains constant within each interval.

For example, if renal function is measured at several visits, a piecewise-constant representation might be:

\[ X(t)= \begin{cases} X_1, & t_0\le t

This approach is often practical because clinical measurements are collected at discrete times rather than continuously.

RepresentationAdvantageConsideration
Continuous functionCan represent smooth biological changeRequires an appropriate model for the trajectory
Piecewise constantSimple and closely tied to observed measurementsAssumes the covariate is constant between updates
InterpolationProvides values between observed measurementsInterpolation assumptions may affect predictions
Latent dynamic modelCan explicitly model an unobserved evolving processMore complex and potentially harder to identify
07 · PK applications

7. Time-Varying Covariates in Pharmacokinetics

In PK models, time-varying covariates commonly affect clearance, volume, absorption, or other parameters.

Clearance

A common example is changing renal function:

\[ CL(t)=CL_{\mathrm{nonrenal}}+CL_{\mathrm{renal}}(t) \]

If renal function changes, the renal contribution to clearance may change over time.

Volume of distribution

In some settings, changing body composition, fluid status, or other physiologic variables may motivate a time-varying volume model:

\[ V(t)=V_{\mathrm{ref}}f\left(X(t)\right) \]

Drug-drug interactions

If an interacting drug is started or stopped during a study, its effect on clearance can be represented dynamically. A simplified model might be:

\[ CL(t)=CL_0\cdot I(t) \]

where \(I(t)\) represents an induction or inhibition effect that changes over time.

08 · Dynamic PD

8. Time-Varying Covariates in Pharmacodynamics

Time-varying covariates are also important in PD models. A changing disease marker or physiologic state can modify the relationship between drug concentration and effect.

For example, suppose baseline effect and maximum response depend on a changing disease-state variable \(X(t)\):

\[ E(t)=E_0(X(t))+ \frac{E_{\max}(X(t))C(t)} {EC_{50}+C(t)} \]

Alternatively, the covariate may affect the potency parameter:

\[ EC_{50}(t)=EC_{50,\mathrm{ref}} \left(\frac{X(t)}{X_{\mathrm{ref}}}\right)^\theta \]

In this case, the same concentration can produce different predicted effects at different times because the underlying state of the system has changed.

09 · Indirect effects

9. Time-Varying Covariates and Indirect Response Models

Some dynamic covariates are not simply external predictors. They may be variables that are themselves generated by a biological system.

Consider a biomarker governed by production and loss:

\[ \frac{dR(t)}{dt}=k_{\mathrm{in}}-k_{\mathrm{out}}R(t) \]

If drug exposure modifies the production or loss process, the biomarker becomes dynamically linked to the PK model.

\[ \frac{dR(t)}{dt} = k_{\mathrm{in}}(C(t))-k_{\mathrm{out}}R(t) \]

Here, \(R(t)\) is not merely a covariate inserted into an equation. It is part of a mechanistic dynamic system.

Modeling distinction: an externally measured time-varying covariate and an endogenous dynamic state variable can look similar mathematically, but their interpretation and causal structure are different.
10 · Feedback

10. When the Covariate Is Affected by the Drug

A particularly important situation occurs when the drug changes the covariate that subsequently changes PK or PD behavior.

For example:

\[ C(t)\rightarrow X(t)\rightarrow CL(t)\rightarrow C(t) \]

This creates a feedback system. The drug affects \(X(t)\), and \(X(t)\) affects the drug's subsequent disposition or effect.

Such systems require careful mechanistic specification because treating \(X(t)\) as an ordinary independent covariate may fail to represent the feedback relationship.

C(t) drug concentration X(t) dynamic state CL(t) clearance feedback changes subsequent concentration

When a drug changes a dynamic covariate that subsequently affects PK, the model may need to represent the feedback explicitly.

11 · Data requirements

11. What Data Are Needed?

Time-varying covariate models require information about both the covariate and the PK/PD observations. The timing of measurements is therefore particularly important.

  1. Concentration or effect observations. These provide information about the PK/PD trajectory.
  2. Covariate measurements. Values should be available at times that are informative about the proposed relationship.
  3. Timing information. The model must know when covariate values were measured or changed.
  4. Dosing history. Dose timing and amount must be represented accurately.
  5. Relevant baseline characteristics. Baseline covariates may still be important even when dynamic covariates are included.
Sampling principle: a rapidly changing covariate measured only occasionally may be difficult to represent accurately. The usefulness of a time-varying covariate depends partly on how well its temporal behavior is observed.
12 · Temporal alignment

12. Aligning Covariates With PK/PD Observations

One of the practical challenges is deciding which covariate value should apply at a particular concentration or effect measurement.

Suppose a biomarker is measured at \(t=4\) hours, but a concentration sample is collected at \(t=5\) hours. Several approaches are possible, depending on the scientific and statistical assumptions:

ApproachConceptPotential issue
Last observation carried forwardUse the most recent measured valueAssumes no relevant change between measurements
InterpolationEstimate intermediate valuesIntroduces assumptions about the trajectory
Piecewise modelUpdate the covariate at specified timesCan create abrupt changes if the true process is smooth
Joint dynamic modelModel the covariate process itselfMore parameters and greater modeling complexity

The correct choice depends on the measurement process and the biological mechanism. There is no universal rule that one method is always preferable.

13 · Worked example

13. Worked Example: Changing Renal Function and Clearance

Consider a hypothetical one-compartment IV model with \(V=20\) L. Suppose typical clearance at a reference renal-function measure of 100 units is 5 L/h, and clearance is proportional to renal function.

Step 1: Specify the covariate relationship

\[ CL(t)=5\left(\frac{RF(t)}{100}\right) \]

Step 2: Early study period

Suppose \(RF(t)=100\) during the first interval.

\[ CL=5\left(\frac{100}{100}\right)=5\text{ L/h} \]

The corresponding first-order elimination rate constant is:

\[ k=\frac{CL}{V}=\frac{5}{20}=0.25\text{ h}^{-1} \]

Step 3: Later study period

Suppose renal function decreases to 60 units.

\[ CL=5\left(\frac{60}{100}\right)=3\text{ L/h} \]

The elimination rate constant becomes:

\[ k=\frac{3}{20}=0.15\text{ h}^{-1} \]

Step 4: Interpret the change

The model therefore predicts slower elimination after renal function decreases. The effect is not limited to the instantaneous clearance estimate: the altered elimination rate changes the subsequent concentration trajectory.

Key lesson: the time-varying covariate creates a time-varying PK parameter, which in turn changes the future concentration profile.
14 · Population PK

14. Time-Varying Covariates in Population PK

Population PK models commonly distinguish between typical population parameters, between-subject variability, residual variability, and covariate effects.

A simple population model might be written as:

\[ CL_i(t)=CL_{\mathrm{pop}} \left(\frac{WT_i(t)}{WT_{\mathrm{ref}}}\right)^{\theta_{WT}} e^{\eta_{CL,i}} \]

Here, \(WT_i(t)\) is a time-varying body weight and \(\eta_{CL,i}\) represents an individual deviation from the typical clearance after accounting for the modeled covariate relationship.

This separates two concepts:

  • Covariate effect: systematic change associated with the measured variable.
  • Random effect: unexplained individual deviation from the typical model after accounting for modeled predictors.

A changing covariate therefore does not eliminate the need to represent between-subject variability.

15 · Interpolation and implementation

15. How Are Time-Varying Covariates Implemented?

In nonlinear mixed-effects modeling, time-varying covariates are typically supplied to the model as functions of time or as observed values associated with the current event or integration time.

Conceptually, the model evaluates:

\[ X=X(t) \]

and then uses that value wherever the covariate enters the model.

For example:

\[ CL(t)=CL_{\mathrm{pop}}f(X(t))e^{\eta_{CL}} \]

Numerical integration then propagates the consequences of the changing clearance through the PK system.

Implementation issueQuestion to ask
Missing covariate valuesHow should unavailable values be handled?
TimingWhen does a measured value become applicable?
InterpolationIs a continuous trajectory justified?
Measurement errorIs the observed covariate a sufficiently accurate representation of the underlying state?
EndogeneityDoes drug exposure influence the covariate?
Numerical integrationDoes the model remain stable when parameters change over time?
16 · Common pitfalls

16. Common Mistakes With Time-Varying Covariates

1. Treating a changing process as baseline only

If the scientific mechanism depends on current rather than baseline status, using only the baseline measurement can omit relevant within-person dynamics.

2. Assuming every repeated measurement should enter the model

Repeated measurements do not automatically establish a meaningful covariate relationship. The model should have a scientific rationale for including the variable.

3. Ignoring temporal ordering

The timing of the covariate relative to dosing and concentration measurement matters. A future measurement should not automatically be used to explain an earlier observation.

4. Treating an endogenous variable as independent

If the drug changes the covariate, a simple predictor interpretation may be inappropriate. A dynamic or joint model may be more suitable.

5. Over-interpolating sparse measurements

Creating a highly detailed trajectory from a small number of measurements can give a false impression of temporal precision.

6. Confusing association with mechanism

A statistically useful time-varying covariate relationship does not by itself establish the biological mechanism responsible for the association.

17 · Identifiability

17. Identifiability and Model Complexity

Time-varying covariates can make models substantially more informative, but they can also introduce additional parameters and correlations among parameters.

For example, if both clearance and volume are allowed to change with the same covariate:

\[ CL(t)=CL_{\mathrm{ref}}f_1(X(t)) \]
\[ V(t)=V_{\mathrm{ref}}f_2(X(t)) \]

the available data must contain enough information to distinguish the effects of \(CL(t)\) from \(V(t)\).

Identifiability therefore depends on the study design, sampling schedule, variability in the covariate, dose history, and structural model.

Practical principle: adding a time-varying covariate relationship is useful only when the data contain enough information to estimate its effect reliably.
18 · Prediction

18. What Can These Models Predict?

Once evaluated, a time-varying PK/PD model can be used to explore scenarios in which the covariate changes over time.

  • Concentration trajectories under changing renal function.
  • Exposure under changing body weight or physiologic status.
  • Drug effect as disease severity evolves.
  • Consequences of starting or stopping an interacting treatment.
  • Effects of changing biomarker levels on pharmacodynamic response.
  • Individualized dosing scenarios based on evolving patient characteristics.

Such predictions are conditional on the assumed covariate trajectory and the estimated model parameters.

19 · Practical workflow

19. A Practical Workflow for Time-Varying Covariate Modeling

  1. Define the scientific mechanism. Identify why the changing variable should affect PK or PD.
  2. Characterize the measurement process. Determine when and how the covariate is observed.
  3. Explore the trajectory. Plot the covariate against time and examine between-person differences.
  4. Choose the model form. Specify whether the covariate affects clearance, volume, potency, baseline effect, turnover, or another component.
  5. Define temporal handling. Decide whether the covariate is continuous, piecewise constant, interpolated, or jointly modeled.
  6. Estimate the model. Fit the PK/PD model using an appropriate estimation framework.
  7. Evaluate diagnostics. Examine parameter estimates, residuals, individual predictions, covariate relationships, and numerical behavior.
  8. Assess sensitivity. Consider whether alternative covariate representations materially change the conclusions.
  9. Simulate realistic trajectories. Use plausible covariate histories rather than arbitrary changes.
  10. Interpret carefully. Distinguish descriptive prediction from mechanistic or causal interpretation.

20. Key Takeaways

  • A time-varying covariate is a predictor whose value changes during the modeled period.
  • Time-varying covariates can explain within-person changes that cannot be represented by baseline covariates alone.
  • A changing covariate can make PK or PD parameters functions of time, such as \(CL(t)\), \(V(t)\), or \(EC_{50}(t)\).
  • When a time-varying covariate enters a differential equation, its effects can propagate through the subsequent trajectory of the entire system.
  • Covariates can be represented continuously, piecewise constantly, through interpolation, or as components of a joint dynamic model.
  • Renal function, body weight, biomarkers, disease state, physiologic measurements, and concomitant treatments are examples of variables that may be modeled dynamically when scientifically justified.
  • A measured time-varying covariate is different conceptually from an endogenous dynamic state variable that is itself generated by the model.
  • Temporal alignment is critical: the model must specify when each covariate value applies.
  • If the drug changes the covariate, feedback or joint dynamic modeling may be necessary.
  • Time-varying covariate models can be more realistic but may also introduce additional parameters and identifiability challenges.
  • Repeated measurements do not automatically justify inclusion as a time-varying covariate; the relationship should have a scientific rationale.
  • Predictions from a time-varying PK/PD model remain conditional on the assumed covariate trajectory, model structure, and estimated parameters.
Next step

Where to Go Next

A natural progression is to study dynamic systems and indirect response models, followed by biomarker turnover, disease-progression models, time-dependent drug-drug interactions, and mechanism-based PK/PD models.

These topics extend the same central idea: drug exposure, physiologic state, biomarkers, and pharmacologic effects can evolve together rather than remaining fixed throughout a study.

← Back to Pharmacokinetics Tutorials