compagraph: The cardinal paired comparison graph

View source: R/compagraph.R

compagraphR Documentation

The cardinal paired comparison graph

Description

This function build the paired comparison graph or use a given paired comparison outcomes to build the graph (G,S).

Usage

compagraph(
  noitems,
  nocompars,
  scores,
  vars = 1,
  data = NULL,
  datatype = "simulated"
)

Arguments

noitems

The number of items for the paired comparison.

nocompars

A vector of the number of pairwise comparisons among noitems.

scores

The true scores or merits of noitems.

vars

The constant variance of scores; default is 1.

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.

Value

A comparison graph with samples on edges.

Author(s)

Prince P. Osei and Ori Davidov

Examples

## 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)

oseipep/pcdbayeslm documentation built on Aug. 6, 2023, 8:45 a.m.