I am using the MatchIt package to generate a matched dataset. I wonder how to save a plot showing the absoluted SMDs before and after the matching, i.e. plot(summary(my_matchitinstall.packages("MatchIt").
Please see reproducible example below:
#install.packages("MatchIt")
library(MatchIt)
data("lalonde")
# Default: 1:1 NN PS matching w/o replacement
m.out1 <- matchit(treat ~ age + educ + race + nodegree +
married + re74 + re75, data = lalonde)
m.out1
summary(m.out1)
my_plot <- plot(summary(m.out1))