TrialEmulation: Causal Analysis of Observational Time-to-Event Data

Implements target trial emulation methods to apply randomized clinical trial design and analysis in an observational setting. Using marginal structural models, it can estimate intention-to-treat and per-protocol effects in emulated trials using electronic health records. A description and application of the method can be found in Danaei et al (2013) <doi:10.1177/0962280211403603>.

Depends: R (≥ 3.5.0)
Imports: broom (≥ 0.7.10), checkmate, data.table (≥ 1.9.8),, mvtnorm, parglm, Rcpp, sandwich
LinkingTo: Rcpp
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0), withr
Published: 2024-01-24
DOI: 10.32614/CRAN.package.TrialEmulation
Author: Roonak Rezvani ORCID iD [aut] (Original package author), Isaac Gravestock ORCID iD [aut, cre], Li Su [aut], Medical Research Council (MRC) [fnd], F. Hoffmann-La Roche AG [cph, fnd]
Maintainer: Isaac Gravestock <isaac.gravestock at>
License: Apache License (≥ 2)
NeedsCompilation: yes
Language: en-GB
Materials: README NEWS
CRAN checks: TrialEmulation results


Reference manual: TrialEmulation.pdf
Vignettes: Getting-Started


Package source: TrialEmulation_0.0.3.8.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): TrialEmulation_0.0.3.8.tgz, r-oldrel (arm64): TrialEmulation_0.0.3.8.tgz, r-release (x86_64): TrialEmulation_0.0.3.8.tgz, r-oldrel (x86_64): TrialEmulation_0.0.3.8.tgz
Old sources: TrialEmulation archive


Please use the canonical form to link to this page.