mdis_chrt: mdis_chrt: Matrix algebra in base R for covariate balance...

Description Usage Arguments Value Examples

Description

This function will compute M-distance for a covariate matrix to its mean

Usage

1
mdis_chrt(x_i)

Arguments

x_i

A vector or covariate matrix

Value

a numeric vector of length equal to x_i

Examples

1
2
3
4
require(jumble)
df_x <- ACTG175[, c('age', 'gender', 'race', 'msm')]

mdis_chrt(df_x)

kmcconeghy/jumble documentation built on Jan. 8, 2020, 8:52 a.m.