kdkyrngtr2 {ovbsa}R Documentation

compute max(kD) and max(kY) for total R2-based analysis

Description

compute max(kD) and max(kY) for total R2-based analysis

Usage

kdkyrngtr2(data, outcome, treatment, bnch_reg, other_reg = NULL)

Arguments

data

data frame for analysis

outcome

name of outcome variable

treatment

name of treatment variable

bnch_reg

name(s) of benchmark covariate(s)

other_reg

name(s) of other covariates

Value

a data frame with 2 columns and 1 row:

kd_high

max(kD), a scalar

ky_high

max(kY), a scalar

Examples

require("sensemakr")
Y <- "peacefactor"
D <- "directlyharmed"
X <- "female"
X_oth <- c("village","age","farmer_dar","herder_dar","pastvoted","hhsize_darfur")


r1 <- kdkyrngtr2(data=darfur,outcome=Y,treatment=D,bnch_reg=X,other_reg=X_oth)


[Package ovbsa version 2.0.0 Index]