Learn R Programming

MatchItEXT (version 0.0.1)

plot_ps_qq: Draw QQ plots of propensity score between groups before and after matching

Description

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.

Usage

plot_ps_qq(mi_obj = NULL)

Arguments

mi_obj

A matchit object derived from MatchIt pacakge

Value

Return a list of relevant data, code, and QQ plot

See Also

plot_smd()

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab