| simPC {prefmod} | R Documentation |
The function generates a random paired comparison data matrix (two response categories, no undecided) or a rankings data matrix optionally based on user specified worth parameters.
simPC(nobj, nobs, worth = NULL, seed = NULL, pr = FALSE) simR(nobj, nobs, worth = NULL, seed = NULL, pr = FALSE)
nobj |
Number of objects. |
nobs |
Number of cases. |
worth |
If |
seed |
Starting value for the random number generator. |
pr |
If |
The random data matrix as a data frame
Reinhold Hatzinger
data<-simPC(4,10,worth=1:4,seed=123456) data