True log-HR psi0(x) along x_pred with region histograms (paper Fig. 3 analogue)
Source:R/mrct_inject_dgm.R
plot_region_modifier.RdTrue log-HR psi0(x) along x_pred with region histograms (paper Fig. 3 analogue)
Arguments
- dgm
An MRCT data-generating mechanism returned by
inject_mrct_structure(). Usesdf_super(the effect modifier, the region indicator andloghr_po) andhazard_ratios$AHRfor the reference line.- file
Optional character path. When supplied, the plot is written to this PNG file (900 x 800 px) and the device is closed on exit; when
NULL(default), it is drawn on the current device.- main
Optional character title for the upper panel. When
NULL(default), the title is"True causal log-HR along <x_pred>".