Observational studies of binary outcomes often lead to practical decisions. For example, does a treatment add a meaningful number of deaths per 100 patients? Sensitivity analysis asks how strong an unmeasured confounder would have to be to change such a conclusion. Bringing an estimate down to a practically important size and bringing it to zero are different questions, and they can need very different confounders. We present the R package confoundvis, which stores any one-dimensional sensitivity analysis in a common object and applies the same plotting, reporting, and tabulation functions to it. Version 0.4.1 adds sens_risk_difference(), which applies the binary-confounder model of Lin, Psaty, and Kronmal to a fitted model. This function standardizes the risks to the study population and reports where the risk difference reaches a user-chosen threshold and where it reaches zero. The package also computes the omitted-variable-bias bounds of the Python package doubleml for fits from the R package DoubleML, imports instrumental-variable sensitivity analyses from iv.sensemakr, and runs partial R2, impact-threshold, replacement, E-value, and Rosenbaum analyses through one call. In the right heart catheterization data (5,735 patients), catheterization was associated with 6.3 more deaths within 30 days per 100 patients (95% CI 3.7 to 8.9). For a confounder present in 40% of catheterized and 20% of other patients, an odds ratio of 3.39 with death brought the difference down to an illustrative threshold of 2 deaths per 100. On the other hand, an odds ratio of 6.37 was needed to bring it to zero. All results agreed with the established implementations.
翻译:暂无翻译