Learn R Programming

PSAboot (version 1.3.6)

balance.matching: Returns balance for each covariate from propensity score matching.

Description

This function is function is primarily used by [PSAboot::balance()] and probably does not need to be called directly.

Usage

balance.matching(index.treated, index.control, covs)

Value

a named vector with one element per covariate.

Arguments

index.treated

a vector with the index of treated rows in covs.

index.control

a vector with the index of control rows in covs.

covs

data frame or matrix of covariates. Factors should already be recoded. See cv.trans.psa