subclassify | R Documentation |
Compute subclassification ATT and ATE
subclassify(df, x, y = "re78", w = "treat", debug = F)
df |
data.table |
x |
character vector of discrete covariates |
y |
outcome |
w |
treatment |
debug |
boolean to return strata-specific estimates |
list with ATE and ATT estimate in est and strata level averages in table
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.