subclassify: Compute subclassification ATT and ATE

View source: R/causalFns.R

subclassifyR Documentation

Compute subclassification ATT and ATE

Description

Compute subclassification ATT and ATE

Usage

subclassify(df, x, y = "re78", w = "treat", debug = F)

Arguments

df

data.table

x

character vector of discrete covariates

y

outcome

w

treatment

debug

boolean to return strata-specific estimates

Value

list with ATE and ATT estimate in est and strata level averages in table

Examples

data(lalonde.psid); setDT(lalonde.psid)
subclassify(lalonde.psid,
  x = c("u74", "u75"),
  y = "re78", w = "treat"
)
subclassify(lalonde.psid,
  x = c("married", "black", "hispanic", "u74", "u75"),
  y = "re78", w = "treat"
)


apoorvalal/LalRUtils documentation built on Sept. 22, 2023, 5:53 p.m.