get stimulus ratings and/or a summary plot
an object of class
character, what values should be returned, see below
logical, should a plot drawn
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.
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
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
1 2 3 4 5 6 7 8
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.