← Methods repository
CONCEPTADVANCEDPYTHON · R · SAS4 citations

Dose-Response and Exposure-Response Modeling in RWE

Models the shape of the relationship between a treatment amount or exposure metric and an outcome, using real-world dose, cumulative exposure, adherence, therapeutic drug monitoring, or linked PK/PD proxies while separating pharmacologic signal from confounding by indication, titration, tolerability, and outcome-driven dose changes.

Inferential Statisticsdose-responseexposure-responsedose-findingcumulative-doseemaxsplinestherapeutic-drug-monitoringtitration
On this page
Methods reference only. Use primary source citations and local policy before applying this in a study protocol, regulatory submission, payer dossier, or clinical decision.
In plain language

Dose-response modeling asks whether more exposure to a treatment is linked to more benefit or more harm. In real-world data, "dose" may mean the strength dispensed at the pharmacy, cumulative milligrams over time, an administered biologic dose, or a measured drug level. The hard part is that patients do not receive higher or lower doses randomly, so the curve must be designed around titration, frailty, tolerance, disease severity, and survival long enough to accumulate dose.

When to use it
Use this concept for drug-dose questions; use the spline concept for the generic regression functional-form problem.
Prefer dose-response modeling when the estimand is the curve; prefer dose-titration logic when the estimand is a treatment strategy.
Use both for cumulative-dose safety studies.
Watch out for
Still depends on the spline or model family to estimate a stable shape.
Titration rules may be the real intervention; modeling dose as a covariate can hide strategy-level effects.
Relies on time-updated exposure construction rules to avoid immortal time and misclassified person-time.

Dose-response and exposure-response modeling

asks whether more treatment produces more benefit, more harm, a plateau, a threshold, or a U/J-shaped curve. In RWE the exposure axis is rarely the clean randomized dose used in a phase 2 trial. It may be the dispensed strength on the index fill, average daily dose reconstructed from `fill_date` and `days_supply`, cumulative mg, dose intensity during an as-treated episode, therapeutic drug monitoring concentration, or a biologic-administration dose from medical claims. The analyst must state which axis is being modeled because a "dose-response" curve based on prescribed dose and an "exposure-response" curve based on observed concentration answer different questions.

Core conceptual distinction

A dose curve in routine care is not automatically causal. Higher dose often marks worse baseline disease, better tolerance, larger body size, renal function, prescriber practice, insurance access, or survival long enough to titrate. Lower dose can mark frailty, toxicity, contraindications, or early non-response. The curve therefore combines pharmacology with clinical selection unless time zero, dose construction, confounder timing, and post-baseline dose changes are handled explicitly. The deliverable is the predicted risk, rate, mean response, or marginal effect over the observed exposure range with a declared reference exposure, not the individual spline or Emax coefficients.

Pros, cons, and trade-offs

  • Dispensed dose vs observed exposure. Claims-based dose is available at scale and maps to label strengths, but it does not prove ingestion or biologic exposure. Concentration or biomarker exposure is closer to pharmacology but usually exists only in EHR/registry subsets and is measured when clinicians are worried, creating informative observation.
  • Continuous curve vs dose categories. A restricted cubic spline, Emax, or MCP-Mod-style model preserves ordering and can reveal plateaus or thresholds. Categories are easier to explain to a payer but throw away within-category information and can invent false thresholds. Prefer a curve as the primary analysis and evaluate it at clinically recognizable dose anchors for reporting.
  • Baseline dose vs time-updated dose. Baseline dose avoids feedback from early outcomes but misses titration and dose reductions. Time-updated dose follows real exposure but can condition on intermediate response, toxicity, or survival. Use marginal structural or clone-censor-weight logic when dose changes are themselves treatment strategies.
  • Parametric pharmacology vs flexible regression. Emax and sigmoid Emax encode a plateau and are useful when pharmacology supports that shape. Splines are safer when the shape is unknown, but they extrapolate poorly and require enough events across the dose range.

When NOT to use - and when it is actively misleading

  • Do not interpret an observed high-dose vs low-dose association as pharmacologic unless severity, renal function, prior response, body size, route, prescriber, and access are measured before the dose decision.
  • Do not define "high cumulative dose" using future follow-up without a design that prevents immortal time. Patients must survive and remain observable to accumulate dose.
  • Do not adjust for post-index biomarkers, adherence, or monitoring visits as ordinary confounders if they are consequences of earlier dose or early response.
  • Do not extrapolate beyond observed doses. RWE dose curves are descriptive or causal only over the support of real patients who received those doses.

Data-source operational depth

Claims data support large dose analyses when NDC strength, quantity, days supply, medical J-codes, and enrollment are complete; they are weak for actual ingestion, inpatient administrations, dose samples, and weight-based biologic dosing unless medical and pharmacy benefits are linked. EHR data add weight, renal function, labs, and sometimes administered dose or therapeutic drug monitoring, but measurements are visit-driven and often ordered because of toxicity or non-response. Registries add disease severity and adjudicated outcomes but may miss complete pharmacy fills. Linked claims-EHR-vital-records is strongest, but the linked subset is selected and order, fill, administration, and lab dates must be reconciled before constructing the exposure axis.

Decision diagram

flowchart TD
  Rx["Raw treatment records<br/>NDC strength, quantity, days_supply, J-code units"] --> Axis["Exposure axis<br/>baseline dose / average daily dose / cumulative mg / concentration"]
  Axis --> Design["Time ordering and confounding design<br/>new-user, dose interval, pre-dose covariates"]
  Design --> Model["Curve model<br/>spline, Emax, MCP-Mod-style candidates"]
  Model --> Report["Report curve, reference dose,<br/>support, uncertainty, benefit and harm"]
  Design --> Stop["Stop if dose changes are driven by<br/>unmodeled toxicity, response, or survival"]
Dose-response modeling in RWE starts with careful exposure construction, then fits a curve only after time ordering and dose-selection bias are addressed.

Worked example

Scenario

A claims-EHR study evaluates whether higher semaglutide dose is associated with larger one-year HbA1c reduction among adults with type 2 diabetes. Pharmacy claims identify dispensed dose strengths and days supply. EHR labs provide baseline and follow-up HbA1c. The analyst wants a curve, not just a high-dose vs low-dose comparison.

Dataset

Illustrative dose strata after constructing average daily dose during the first 180 days and requiring baseline and 9-15 month HbA1c.

dose_groupn_patientsmean_baseline_hba1cmean_daily_dose_mgmean_hba1c_change
Low8208.70.25-0.6
Medium12608.90.5-1.0
High7409.11.0-1.2

Steps

1Define time zero as the first qualifying fill after a 365-day washout.
2Construct dose from NDC strength, quantity, and days supply; carry stockpiled supply forward but cap implausible daily dose at label-supported maxima.
3Model dose continuously with a restricted cubic spline and adjust only for pre-index covariates and pre-index HbA1c, not follow-up tolerability or interim response.
4Plot adjusted HbA1c change across dose with 0.50 mg as the reference and mark the observed dose density below the curve.
5Run a safety curve for nausea/dehydration separately because benefit and harm may plateau at different doses.

Result

The curve suggests most incremental HbA1c reduction occurs between 0.25 and 0.50 mg, with a smaller gain above 0.50 mg and wider uncertainty at the highest dose. The high-dose tail is not interpreted as causal unless titration and tolerability selection are handled as a treatment strategy.

Trade-offs

Pros of this
Adds pharmacoepidemiologic exposure construction, time ordering, and dose-selection bias logic around the curve.
Pros of this
Estimates outcome shape across dose or exposure levels, not just the operational pattern of up-titration and dose holds.
Pros of this
Focuses on the dose/outcome curve and reporting of thresholds, plateaus, and target doses.

Runnable example

Fit a spline dose-response curve for a continuous outcome with pre-index covariates.

requires: pandas · numpy · patsy · statsmodels
import numpy as np
import pandas as pd
import statsmodels.formula.api as smf

def fit_dose_response(df):
    df = df.copy()
    knots = np.percentile(df["avg_daily_dose_mg"], [10, 50, 90])
    formula = (
        "outcome_change ~ cr(avg_daily_dose_mg, knots=[{:.6g}], "
        "lower_bound={:.6g}, upper_bound={:.6g}) + baseline_outcome + age + cci"
    ).format(knots[1], knots[0], knots[2])
    fit = smf.ols(formula, data=df).fit(cov_type="HC3")
    grid = pd.DataFrame({
        "avg_daily_dose_mg": np.linspace(df.avg_daily_dose_mg.quantile(0.02),
                                         df.avg_daily_dose_mg.quantile(0.98), 100),
        "baseline_outcome": df.baseline_outcome.mean(),
        "age": df.age.mean(),
        "cci": df.cci.mean(),
    })
    grid["predicted_change"] = fit.predict(grid)
    return fit, grid

Citations

FOUNDATIONAL / METHODS
  1. [1]U.S. Food and Drug Administration. Exposure-Response Relationships - Study Design, Data Analysis, and Regulatory Applications. Guidance for Industry. 2003.
  2. [2]International Conference on Harmonisation. E4 Dose-Response Information to Support Drug Registration. 1996.
APPLIED EXAMPLES
  1. [3]Bretz F, Pinheiro JC, Branson M. Combining multiple comparisons and modeling techniques in dose-response studies. Biometrics. 2005;61(3):738-748.
REPORTING & GUIDANCE
  1. [4]Pinheiro J, Bornkamp B, Glimm E, Bretz F. Model-based dose finding under model uncertainty using general parametric models. Statistics in Medicine. 2014;33(10):1646-1661.