This function plots 1) the ATE as a function of the sensitivity function value when it is constant and 2) its associate 95 interval obtained via bootstrapping, if desired. The latter process can be take a few seconds to minutes.
plot_causens(
trt_model,
data,
outcome,
c1_upper = 0.5,
c1_lower = 0,
r = 1,
by = 0.01
)A plot of the ATE as a function of c1 values.
The treatment model object as a formula or fitted glm.
A data frame containing the variables of interest.
The name of the outcome variable.
The upper bound for the sensitivity function value.
The lower bound for the sensitivity function value.
The ratio between c1 and c0.
The increment for the sensitivity function value.