triad.test | R Documentation |
You get a similarity matrix of triad test data. You'll probably need to convert it to a dissimilarity matrix to plot it. See examples.
triad.test(data)
data |
This is triad data. It needs to consist of: (1) an identifying number for each triad (NUM), (2-4) the specific items of the triad (item1, item2, item3), and (5-n) participants' selection of the most distinct item of the triad, the triad.test() function will create an item-by-item similarity matrix (PART1, PART2, ... PARTn). |
The output here is the similarity matrix of the triad data.
Pay close attention to the nature of the input data. The function will only work when data are in this particular shape and format. See the example below.
data(RVSfaculty)
d.diff <- triad.test(RVSfaculty) # similarity matrix
d.sim <- as.dist(1 - d.diff) # dissimilarity matrix
plot(hclust(d.sim), main = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.