Returns a dominance or difference matrix based on the comparison of all values of two 1-column matrices x and y
Usage
dm(x, y, diff=FALSE)
Arguments
x
1 column matrix with $n_1$ values (e.g. from group X)
y
1 column matrix with $n_2$ values (e.g. from group Y)
diff
If argument is set to true, the function will return a difference matrix. Otherwise, a dominance matrix is produced.
Value
Details
Each difference matrix cell value $d_{ij}$ is calculated as $y_j-x_i$ across all $i=1,2,3,...,n_1$ values (=rows) of x and $i=1,2,3,...,n_2$ values (=rows) of y.
Dominance matrix cell values are calculated as $sign(y_j-x_i)$.
References
Cliff, N. (1996). Ordinal Methods for Behavioral Data Analysis. Mahwah, NJ: Lawrence Erlbaum.