Description Usage Arguments Details Value Author(s) Examples
get stimulus ratings and/or a summary plot
1 |
x |
an object of class |
show |
character, what values should be returned, see below |
drawplot |
logical, should a plot drawn |
If show="original"
, show="mean"
or show="var"
, a numeric vector is returned which contains either the ratings obtained from the initial/original sequence, the average ratings across all randomizations, or the total variance.
If show="range"
or show="all"
, a matrix is returned that contains either the range of ratings across all randomizations, or all ratings of all randomizations.
If you simply want to create the plot without any rating output being generated, use show=NULL
.
If drawplot=TRUE
, a plot is created that depicts the values of the ratings obtained from the initial sequence (red), the mean ratings across all randomizations (black) and the range of ratings across all randomizations.
numeric vector or matrix, and/or a plot
Christof Neumann
1 2 3 4 5 6 7 8 9 10 11 | xdata <- randompairs(nstim = 10, nint = 100)
x <- elochoice(xdata$winner, xdata$loser, runs = 10)
# ratings from the initial sequence
ratings(x, "original", drawplot = FALSE)
# range of ratings across all randomizations
ratings(x, "range", drawplot = FALSE)
# and producing plot
ratings(x, NULL, drawplot = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.