Description Usage Arguments Value Examples
Creates a Q-Q plot and a histogram to check calibration and overlap assumptions, respectively.
1 | check_propensity(p, w, breaks = 20)
|
p |
a vector of propensity scores. |
w |
a vector of treatment indicators. Treatment must be specified as 0 and 1 or TRUE and FALSE. |
breaks |
an integer number of breaks for the histogram, default to 20. |
a plot object that graphically tests overlap assumption and calibration.
1 2 3 4 | data(lalonde)
p <- propensity_score(lalonde, y = "re78", w = "treat", model = "logistic", plot = FALSE)
w <- lalonde$treat
check_propensity(p = p, w = w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.