assmd | R Documentation |
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")}>
assmd(x, y)
x |
(vector) a numeric vector |
y |
(vector) a numeric vector with compatible dimensions to x |
(numeric) Absolute SSMD
Other splithalfr coefficients:
angoff_feldt()
,
flanagan_rulon()
,
sdregi()
,
short_icc()
,
spearman_brown()
# 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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.