TrialEmulation:一个用于模拟目标试验以进行观察性生存时间数据因果分析的R包
TrialEmulation: An R Package to Emulate Target Trials for Causal Analysis of Observational Time-to-event Data
AI总结:
本文开发了R包TrialEmulation,利用观察性生存时间数据模拟一系列目标试验,通过计算逆概率权重、拟合边际结构模型来估计治疗的因果效应,并支持在R内存限制内处理大型EHR数据集。
摘要:
随机对照试验(RCTs)被认为是估计健康结果因果治疗效应的金标准。然而,由于时间、预算或伦理限制,RCTs并不总是可行的。诸如来自电子健康记录(EHRs)的观察性数据提供了一种估计治疗因果效应的替代方法。最近,Hernan和Robins(2016)提出了“目标试验模拟(target trial emulation)”框架,为从观察性数据中估计因果治疗效应提供了正式结构。为了促进目标试验模拟在实践中更广泛的应用,我们开发了R包TrialEmulation,利用观察性生存时间数据来模拟一系列目标试验,在这些模拟试验中,比较开始接受治疗的个体与在基线时未接受治疗的个体在结果事件风险方面的差异。具体而言,TrialEmulation提供:(1)用于模拟一系列目标试验的数据准备;(2)计算治疗和删失的逆概率权重,以处理治疗转换和依赖性删失;(3)针对给定基线协变量的生存时间结果拟合边际结构模型;(4)针对用户指定的目标试验人群,以接受治疗与未接受治疗之间的边际风险差形式,估计并推断治疗的边际意向治疗和符合方案效应。特别是,TrialEmulation能够通过分块处理数据和应用病例对照采样,在R的内存限制内容纳大型数据集(例如来自EHRs的数据)。我们使用一个模拟数据集演示了TrialEmulation的功能,该数据集模拟了实践中典型的观察性生存时间数据。
英文摘要:
Randomised controlled trials (RCTs) are regarded as the gold standard for estimating causal treatment effects on health outcomes. However, RCTs are not always feasible, because of time, budget or ethical constraints. Observational data such as those from electronic health records (EHRs) offer an alternative way to estimate the causal effects of treatments. Recently, the `target trial emulation' framework was proposed by Hernan and Robins (2016) to provide a formal structure for estimating causal treatment effects from observational data. To promote more widespread implementation of target trial emulation in practice, we develop the R package TrialEmulation to emulate a sequence of target trials using observational time-to-event data, where individuals who start to receive treatment and those who have not been on the treatment at the baseline of the emulated trials are compared in terms of their risks of an outcome event. Specifically, TrialEmulation provides (1) data preparation for emulating a sequence of target trials, (2) calculation of the inverse probability of treatment and censoring weights to handle treatment switching and dependent censoring, (3) fitting of marginal structural models for the time-to-event outcome given baseline covariates, (4) estimation and inference of marginal intention to treat and per-protocol effects of the treatment in terms of marginal risk differences between treated and untreated for a user-specified target trial population. In particular, TrialEmulation can accommodate large data sets (e.g., from EHRs) within memory constraints of R by processing data in chunks and applying case-control sampling. We demonstrate the functionality of TrialEmulation using a simulated data set that mimics typical observational time-to-event data in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。