Description Usage Arguments Value See Also Examples
View source: R/plot_smd_comparison.R
This function accepts a MatchIt object (i.e., the result of matchit function) and draw side-by-side QQ plots of propensity score between groups before and after matching, for the purpose of comparison. Note only the results of Subclassification, Nearest Neighbor Matching, Optimal Matching, Full Matching, and Genetic Matching are acceptable. The results of Exact Matching is not applicable to this function.
1 | plot_ps_qq(mi_obj = NULL)
|
mi_obj |
A matchit object derived from MatchIt pacakge |
Return a list of relevant data, code, and QQ plot
plot_smd()
1 2 3 4 | # take lalonde data as an example
m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan +
black, data = MatchIt::lalonde, method = "nearest")
plot_ps_qq(m_out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.