
Last chance! 50% off unlimited learning
Sale ends in
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)
The random data matrix as a data frame.
Number of objects.
Number of cases.
If NULL
, values are drawn from uniform distribution (interval from 0 to 1), otherwise the user may specify arbitrary values.
In both cases, the values are transformed into [0, 1] and scaled to sum up to 1.
Starting value for the random number generator.
If TRUE
, the used worth parameters are printed.
Reinhold Hatzinger
data <- simPC(4, 10, worth = 1:4, seed = 123456)
data
Run the code above in your browser using DataLab