PlotBalance: Plotting covariate balance before and after matching.

Description Usage Arguments Value

View source: R/PlotBalance_function.R

Description

Function that plots the standardized difference of means before and after matching.

Usage

1
PlotBalance(dtaBef, dtaAfter, cols, trt, cutoff = 0.1)

Arguments

dtaBef

Data frame include the data before matching.

dtaAfter

Data frame including only the matched pairs data. Can be set to NULL if we want to plot the standardized difference of means for only one dataset.

cols

Column indeces of the variables we want to check.

trt

Column index for treatment variable.

cutoff

Cutoff for standardized difference. Defaults to 0.1.

Value

Plot of standardized difference of means before and after matching.


gpapadog/DAPSm documentation built on May 17, 2019, 8 a.m.