Skip to contents

Plot the MTR and MTE estimated curves with their confidence intervals.

Usage

mtr_plot_fun(dat_plot, common_supp)

mte_plot_fun(dat_plot, common_supp)

Arguments

dat_plot

Data frame with the estimated MTE and MTR values and their confidence intervals. Must contain specific variables: Phat, mtr0, mtr1, mtr0_lwr, mtr1_lwr, mtr0_upr, mtr1_upr, mte, mte_lwr, mte_upr.

common_supp

Vector of two values indicating the common support of the plot. Default is the full support 0,1.

conf_band

Indicates whether to plot the confidence intervals. Default is "TRUE".

colMTE, colD0, colD1

Color of the MTE, MTR0 and MTR1 curves.

Details

Attention: by default in semiivreg the confidence intervals are computed analytically, and include an error because the first stage propensity score. This is corrected in semiivreg_boot by bootstrapping the entire estimation to obtain the confidence intervals.