plot_region_modifier: True log-HR psi0(x) along x_pred with region histograms...

View source: R/mrct_inject_dgm.R

plot_region_modifierR Documentation

True log-HR psi0(x) along x_pred with region histograms (paper Fig. 3 analogue)

Description

True log-HR psi0(x) along x_pred with region histograms (paper Fig. 3 analogue)

Usage

plot_region_modifier(dgm, file = NULL, main = NULL)

Arguments

dgm

An MRCT data-generating mechanism returned by inject_mrct_structure(). Uses df_super (the effect modifier, the region indicator and loghr_po) and hazard_ratios$AHR for 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>".

Value

NULL, invisibly. Called for its side effect of drawing a two-panel plot.


forestsearch documentation built on Nov. 15, 2026, 9:06 a.m.