overlap_histogram | R Documentation |
Histogram of pscore distributions in treatment and control groups
overlap_histogram(w, ps)
w |
treatment vector |
ps |
propensity score vector |
figure with overlap
data(lalonde.exp)
pscore = glm(treat ~ . - re78, lalonde.exp, family = binomial)$fitted.values
overlap_histogram(lalonde.exp$treat, pscore) + lal_plot_theme()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.