0

As the documentation of DescTools:::ConDisPairs() says, the function DescTools:::.DoCount() returns "only concorant and discordant pairs". However, there are 4 non-NA list elements that are returned by the function named C, D, T, and N. I understand that C and D stand for "Concordant" and "Discordant". I guess that T stands for "Ties". I do not know what N stands for.

I've tested this:

library(DescTools)
df <- data.frame(a = c(1, 2, 3, 4),
                 b = c(1, 1, 3, 4))
DescTools:::.DoCount(df$a, df$b)

returns 1 T (= tie). The following code, however, returns no tie but 1 N:

df <- data.frame(a = c(1, 1, 3, 4),
                 b = c(1, 1, 3, 4))
DescTools:::.DoCount(df$a, df$b)

Can someone explain to me what's going on and what the 'N' stands for?

swolf
  • 1,020
  • 7
  • 20

0 Answers0