psw.mirror.hist {PSW} | R Documentation |
Mirror histogram
Description
psw.mirror.hist
is used to plot the mirror histogram that visualizes the propensity score distributions in both treatment groups.
Usage
psw.mirror.hist(data, form.ps, weight, add.weight = FALSE, nclass = 50,
K = 4)
Arguments
data |
data frame to be used. |
form.ps |
propensity score model. |
weight |
weighting method to be used. Available methods are |
add.weight |
add propensity score weights to the mirror histogram, |
nclass |
number of breaks in the mirror histogram. |
K |
value of |
Details
See psw
.
Value
NULL
.
See Also
Examples
# Load the test data set
data(test_data);
# Propensity score model
form.ps <- "Z ~ X1 + X2 + X3 + X4";
tmp <- psw.mirror.hist( data = test_data, weight = "MW", form.ps = form.ps,
add.weight = TRUE );
[Package PSW version 1.1-3 Index]