balance: Returns a summary of the balance for all bootstrap samples.

Description Usage Arguments Value

View source: R/balance.R

Description

This method provides some crude overall measures of balance.

Usage

1
balance(psaboot, na.rm = TRUE, pool.fun = mean)

Arguments

psaboot

results from PSAboot.

na.rm

should NAs be removed. NAs generally occur when there is insufficient sample for a particular covariate or an unused level.

pool.fun

a function specifying how the effect sizes across all covariates should be combined. Possible values include mean (default), q25, q75, median, max, or any function that takes a vector of numeric values.

Value

a list with three elements:

unadjusted

named numeric vector with unadjusted effect size before adjustment for each covaraite

complete

a matrix with adjusted effect size for each covariate (columns) for each method (rows).

pooled

a matrix with mean adjusted effect size for all covariates for each method (columns) and each bootstrap sample (rows).

balances

a list with an M x n covariates matrix for each method.


PSAboot documentation built on May 29, 2017, 10:18 a.m.