overlap_histogram: Histogram of pscore distributions in treatment and control...

View source: R/plotUtils.R

overlap_histogramR Documentation

Histogram of pscore distributions in treatment and control groups

Description

Histogram of pscore distributions in treatment and control groups

Usage

overlap_histogram(w, ps)

Arguments

w

treatment vector

ps

propensity score vector

Value

figure with overlap

Examples

data(lalonde.exp)
pscore = glm(treat ~ . - re78, lalonde.exp, family = binomial)$fitted.values
overlap_histogram(lalonde.exp$treat, pscore) + lal_plot_theme()


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