This function takes the output from `margot_tab_lmtp()`, which contains estimates of treatment effects, and calculates E-values to assess the robustness of the estimates to potential unmeasured confounding. E-values quantify the minimum strength of association, on the risk ratio scale, that an unmeasured confounder would need to have with both the treatment and the outcome, to fully explain away the observed association. The legacy `"RD"` option applies the standardised-continuous-outcome approximation to an outcome-mean difference; `"RR"` treats the estimate as a risk ratio.
Usage
lmtp_evalue_tab(x, delta = 1, sd = 1, scale = c("RD", "RR"))Arguments
- x
A data frame output from `margot_tab_lmtp()` containing the estimates of interest.
- delta
The exposure contrast represented by the outcome-mean difference, used only when `scale = "RD"`. Default is 1.
- sd
The outcome standard deviation used to standardise the outcome-mean difference, used only when `scale = "RD"`. Default is 1.
- scale
A character string indicating the calculation: `"RD"` for the standardised-continuous-outcome approximation from an outcome-mean difference, or `"RR"` for a risk ratio. Default is `"RD"`.