# NOT RUN {
# take lalonde data as an example
# run matchit() to obtain the matching result
m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan +
black, data = MatchIt::lalonde, method = "subclass", subclass = 7)
compute_sub_smd(m_out, sd = "treatment")
# }
Run the code above in your browser using DataLab