plot_causens {causens} | R Documentation |
Plot ATE with respect to sensitivity function value when it is constant, i.e. c(1, e) = c1 and c(0, e) = c0.
Description
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.
Usage
plot_causens(
trt_model,
data,
outcome,
c1_upper = 0.5,
c1_lower = 0,
r = 1,
by = 0.01
)
Arguments
trt_model |
The treatment model object as a formula or fitted glm. |
data |
A data frame containing the variables of interest. |
outcome |
The name of the outcome variable. |
c1_upper |
The upper bound for the sensitivity function value. |
c1_lower |
The lower bound for the sensitivity function value. |
r |
The ratio between c1 and c0. |
by |
The increment for the sensitivity function value. |
Value
A plot of the ATE as a function of c1 values.
[Package causens version 0.0.3 Index]