View source: R/plot.summary.lmw.R
plot.summary.lmw | R Documentation |
Produces Love plots (also known as dot plots) of balance statistics to
summarize balance visually. The plots are generated using
dotchart()
and points()
.
## S3 method for class 'summary.lmw'
plot(
x,
stats,
abs = TRUE,
var.order = "data",
threshold = NULL,
layout = "vertical",
...
)
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 |
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.
A plot is displayed, and x
is invisibly returned.
summary.lmw()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.