assmd {splithalfr} | R 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) <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])
[Package splithalfr version 2.2.2 Index]