computeCovariateBalance | R Documentation |
Compute covariate balance before and after adjustment with the propensity scores.
computeCovariateBalance( population, cohorts, covariates, covariateRef, subgroupCovariateId = NULL )
population |
A data frame containing the people that are remaining after matching and/or trimming. |
cohorts |
The cohorts of a |
covariates |
The covariates of a |
covariateRef |
The covariate reference of a |
subgroupCovariateId |
Optional: a covariate ID of a binary covariate that indicates a subgroup of interest. Both the before and after populations will be restricted to this subgroup before computing covariate balance. |
A tibble with the covariate balance before and after matching/trimming.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.