data(lalonde)
match.on <- colnames(lalonde)[!(colnames(lalonde) %in% c('re78', 'treat'))]
my.frontier <- makeFrontier(dataset = lalonde,
treatment = 'treat',
outcome = 're78',
match.on = match.on)
base.form <- as.formula('re78 ~ treat + age + education
+ black + hispanic + married +
nodegree + re74 + re75')
## Not run:
# my.estimates <- estimateEffects(my.frontier,
# 're78 ~ treat',
# mod.dependence.formula = base.form,
# continuous.vars = c('age', 'education', 're74', 're75'),
# prop.estimated = .1,
# means.as.cutpoints = TRUE)
#
# plotEstimates(my.estimates)
# ## End(Not run)
Run the code above in your browser using DataLab