/ExtendingInferences

Code for `Extending inferences from a randomized trial to a new target population'

Primary LanguageR

ExtendingInferences

Extending inferences from a randomized trial to a new target population. Issa J Dahabreh, Sarah E Robertson, Jon A Steingrimsson, Elizabeth A Stuart, and Miguel A Hernán. Statistics in Medicine (2020). https://onlinelibrary.wiley.com/doi/abs/10.1002/sim.8426

A. Example R code to implement estimators

Required R package is geex (to get the sandwich variance)

  1. simulated_example_github.R: Example code to implement the estimators

  2. simulated_example.csv: Example simulated data to download and apply the estimators

  3. simulated_example_source_code4.R: Source code for the estimators

B. Simulation code for the continuous outcome simulations: simulationStata.do