assmd: Calculate Absolute Strictly Standardized Mean Difference...

assmdR Documentation

Calculate Absolute Strictly Standardized Mean Difference (ASSMD)

Description

Returns the absolute difference of the mean of x and y divided by their shared standard deviation. Since the resulting difference is absolute, the larger of the two means is always used as minuend and the smallest as subtrahend. Based on Zhang (2012) <\Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.ygeno.2006.12.014")}>

Usage

assmd(x, y)

Arguments

x

(vector) a numeric vector

y

(vector) a numeric vector with compatible dimensions to x

Value

(numeric) Absolute SSMD

See Also

Other splithalfr coefficients: angoff_feldt(), flanagan_rulon(), sdregi(), short_icc(), spearman_brown()

Examples

# Generate two variables with different means, variances and a correlation of about 0.5
library(MASS)
vars = mvrnorm(30, mu = c(0, 2), Sigma = matrix(c(5, 2, 2, 3), ncol = 2), empirical = TRUE)
# Calculate Absolute SSMD
assmd(vars[,1], vars[,2])

splithalfr documentation built on Sept. 15, 2023, 1:08 a.m.