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

Description Usage Arguments Value See Also Examples

View source: R/plot_smd_comparison.R

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

1
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

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)

MatchItEXT documentation built on Oct. 28, 2020, 5:06 p.m.