rtables::make_afun() on it. It is used as afun in rtables::analyze().a_rbmi_lsmeans(df, .in_ref_col, show_relative = c("reduction", "increase"))Formatted Analysis function
input dataframe
boolean variable, if reference column is specified
"reduction" if (control - treatment, default) or "increase"
(treatment - control) of relative change from baseline?