check_balance_template: Check balance after template matching.

View source: R/check_balance_template.R

check_balance_templateR Documentation

Check balance after template matching.

Description

This function checks the overall balance after template matching and returns a dataframe with 7 columns: (1) mean of all covariates in the treated group, (2) mean of all covariates in the control group, (3) standardized mean differences of (1) and (2), (4) mean of all covariates in the matched treated group, (5) mean of all covariates in the matched control group, (6) standardized mean differences of (4) and (5), (7) mean of covariates in the template

Usage

check_balance_template(dataset, template, template_match_object, cov_list)

Arguments

dataset

The original dataset.

template

A data frame of the template.

template_match_object

An object returned by template_match.

cov_list

A vector of names of covariates as appeared in the original dataset and the template.

Value

This function returns a data frame of the overall balance after template matching. We tabulate the mean and SMD of each covariate in the cov_list in the template, the matched treated group, and the matched control group.


match2C documentation built on March 31, 2023, 6:39 p.m.