# runs regression model
model <- lm(peacefactor ~ directlyharmed + age + farmer_dar + herder_dar +
pastvoted + hhsize_darfur + female + village,
data = darfur)
# contour plot
ovb_contour_plot(model = model, treatment = "directlyharmed")
# add bound 3/1 times stronger than female
add_bound_to_contour(model = model,
benchmark_covariates = "female",
kd = 3, ky = 1)
# add bound 50/2 times stronger than age
add_bound_to_contour(model = model,
benchmark_covariates = "age",
kd = 50, ky = 2)
Run the code above in your browser using DataLab