powered by
Plot histograms showing the overlap between variables by treatment status.
plot_overlap_vars( .data, treatment, confounders, plot_type = c("histogram", "density") )
dataframe
character. Name of the treatment column within .data
character list of column names denoting confounders within .data
the plot type, one of c('histogram', 'density'). Defaults to 'histogram'
ggplot object
plot_overlap_pScores
# NOT RUN { data(lalonde) plot_overlap_vars( .data = lalonde, treatment = 'treat', confounders = c('age', 'educ'), plot_type = 'Histogram' ) # }
Run the code above in your browser using DataLab