compagraph | R Documentation |
This function build the paired comparison graph or use a given paired comparison outcomes to build the graph (G,S).
compagraph(
noitems,
nocompars,
scores,
vars = 1,
data = NULL,
datatype = "simulated"
)
noitems |
The number of items for the paired comparison. |
nocompars |
A vector of the number of pairwise comparisons among |
scores |
The true scores or merits of |
vars |
The constant variance of |
data |
The data containing the comparison outcomes; defalut is NULL. |
datatype |
The type of data to analyze: "simulated" (the default) for simulated data, "real" for a given real dataset. |
A comparison graph with samples on edges.
Prince P. Osei and Ori Davidov
## K = 3 # number of items
## compars <- rep(3,3) # number of comparison (1,2,1,3,2,3)
## scores <- 1:3 # the true scores of the items
## tvar <- 1
## compagraph(K,compars,scores,tvar,data=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.