plot.summary.lmw {lmw} | R Documentation |
Produce a Love plot of balance statistics
Description
Produces Love plots (also known as dot plots) of balance statistics to
summarize balance visually. The plots are generated using
dotchart()
and points()
.
Usage
## S3 method for class 'summary.lmw'
plot(
x,
stats,
abs = TRUE,
var.order = "data",
threshold = NULL,
layout = "vertical",
...
)
Arguments
x |
a |
stats |
a vector of the names of the columns in the |
abs |
|
var.order |
how the variables should be ordered. Allowable options
include |
threshold |
numeric values at which to place vertical lines indicating
a balance threshold. These can make it easier to see for which variables
balance has been achieved given a threshold. Multiple values can be supplied
to add multiple lines. When |
layout |
how the multiple plots should be laid out. Allowable options
include |
... |
further arguments passed to |
Details
Love plots will be produced for the requested statistics in the
summary.lmw
output. How these plots are arranged depends on the value
supplied to layout
, which uses layout()
to arrange the
plots.
Value
A plot is displayed, and x
is invisibly returned.
See Also
Examples
data("lalonde")
# URI regression for ATT
lmw.out1 <- lmw(~ treat + age + education + race + married +
nodegree + re74 + re75, data = lalonde,
estimand = "ATT", method = "URI",
treat = "treat")
lmw.out1
(s <- summary(lmw.out1))
plot(s)
plot(s, stats = "SMD", abs = FALSE)