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)
-
simulated_example_github.R: Example code to implement the estimators
-
simulated_example.csv: Example simulated data to download and apply the estimators
-
simulated_example_source_code4.R: Source code for the estimators
B. Simulation code for the continuous outcome simulations: simulationStata.do