Kernel density estimates of the propensity scores by treatment assignment in order to check whether the estimated propensity scores are well balanced. If object is of class grouped_psweight, then density plots are faceted by the group number. If object is of class grouped_psweight_mi, then propensity scores from the imputations are pooled.

plot_ps(object, ...)

# S3 method for grouped_psweight_mi
plot_ps(object, method = "iptw_att", logit = FALSE)

Arguments

object

An object of the appropriate class.

method

A character vector of length one indicating the propensity score method used to generate the weights.

logit

Logical. If TRUE, then the logit of the propensity score is plotted.

Value

A ggplot2::ggplot object.