How kathoffman/steroids-trial-emulation works
This repository is a tutorial workflow for emulating a target trial and presenting its results. An analyst runs the R analysis with simulated or demo data and the documented lmtp package; results can then be cleaned and visualized. The README documents these roles, but no source excerpts were available, so the graph omits unverified implementation details and input links, especially for the timeline figure.
Main entry points: analysis.R Target trial analysis · report_results.R Clean analysis output · forest_plot_viz.R Forest plot · trt_timeline_viz.R Treatment timeline
Components 9
Trial analysis
- Target trial analysis
code/analysis.R - lmtp package
- Censoring adjustment
code/fix_cens.R
Results and figures
- Clean analysis output
code/report_results.R - Forest plot
code/forest_plot_viz.R - Treatment timeline
code/trt_timeline_viz.R
Analysis data
- Demo analysis data
data/dat_demo.rds - Treatment timeline data
data/dat_trt_timeline.csv
Other components
- Analyst
Connections 6
- Analyst → Target trial analysis: runs
README.md - Target trial analysis → lmtp package: uses
README.md - Analyst → Demo analysis data: uses
README.md - Clean analysis output → Target trial analysis: cleans output
README.md - Analyst → Forest plot: creates figure
README.md - Analyst → Treatment timeline: creates figure
README.md