This repository contains the R model files used to investigate how conventional exposure–response (ER) analyses—such as logistic regression, Kaplan-Meier plots, and Cox proportional hazards models—may be affected by time-dependent confounding factors, including exposure accumulation, dose modification patterns, and event onset timing. Due to the large size of the simulation outputs, we have only included results for the true exposure–response curves to allow readers to quickly run a representative simulation. This repository also serves as supplementary material for our forthcoming publication.
Defines an ER scenario (ER1) where the response is independent of drug exposure, under a fixed dosing regimen without any dose modifications (DH1).
Defines the same exposure-independent scenario (ER1), but under an empirical dosing regimen with significant dosing modifications(DH3).
Defines a positive ER scenario (ER2) where the response is driven by drug exposure under fixed dosing (DH1). The endpoint is **overall response rate (ORR)**, and observations are truncated by progression-free survival (PFS).
Defines a positive ER scenario (ER2) under a dynamic dosing regimen (DH2) where plasma exposure triggers adverse events (AEs) leading to dose reductions (LDR). Endpoint: ORR, truncated by PFS.
Defines an ER scenario (ER2, higher exposure will have a longer survival time) under fixed dosing (DH1). Endpoint: progression-free survival (PFS).
Defines an ER scenario (ER2, higher exposure will have a longer survival time) under dynamic dosing (DH2) with AE-driven dose reductions. Endpoint: PFS.
These files test the performance of conventional vs modified methods for deriving time-dependent exposures under dynamic dosing (DH2):
These models explore how dose levels and dose ranges influence ER relationships:
These files assess how sample size and censoring rate affect bias:
These scripts were used to generate the true ER relationships for ORR and PFS: