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

View source: R/balance.matching.R

balance.matchingR Documentation

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)

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

Value

a named vector with one element per covariate.


PSAboot documentation built on Oct. 24, 2023, 1:06 a.m.