dms: Dominance Matrix in Symbols

Description Usage Arguments Details Author(s) References See Also Examples

Description

Returns a character-based dominance matrix based on the signs of all cell values of a given matrix

Usage

1
dms(dom, paired = FALSE)

Arguments

dom

Input matrix, typically raw difference or dominance matrix

paired

Should only be set to TRUE if the number of rows equal the number of columns and if the difference data in the matrix diagonal are to be given different symbols.

Details

According to the sign of each input matrix' cell value (sign(d_{ij})), a respective symbol is written to the output matrix ("-" for -1, "O" for 0" and "+" for 1).
If paired==TRUE, the diagonal vector of the output matrix receives different symbols (i.e. "<" for -1, "=" for 0, "<" for 1).

Author(s)

Jens Rogmann

References

Cliff, N. (1996). Ordinal Methods for Behavioral Data Analysis. Mahwah, NJ: Lawrence Erlbaum.

See Also

dm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: > x<-t(matrix(c(1,1,2,2,2,3,3,3,4,5),1))
> y<-t(matrix(c(1,2,3,4,4,5),1))
> write.table(dms(dm(x,y)),quote=FALSE,row.names=FALSE,col.names=FALSE,sep="")
O-----
O-----
+O----
+O----
+O----
++O---
++O---
++O---
+++OO-
+++++O
## End(Not run)

orddom documentation built on May 2, 2019, 2:45 a.m.