balance | R Documentation |
This method provides some crude overall measures of balance.
balance(psaboot, na.rm = TRUE, pool.fun = mean)
psaboot |
results from |
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 |
a list with three elements:
named numeric vector with unadjusted effect size before adjustment for each covariate
a matrix with adjusted effect size for each covariate (columns) for each method (rows).
a matrix with mean adjusted effect size for all covariates for each method (columns) and each bootstrap sample (rows).
a list with an M x n covariates matrix for each method.
library(PSAboot)
data(pisa.psa.cols)
data(pisausa)
bm.usa <- PSAboot(Tr = as.integer(pisausa$PUBPRIV) - 1,
Y = pisausa$Math,
X = pisausa[,pisa.psa.cols],
control.ratio = 5, M = 100, seed = 2112)
bm.usa.bal <- balance(bm.usa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.