View source: R/psychReportData.R
rtDist | R Documentation |
Returns value(s) from a distribution appropriate to simulate reaction times. The distribution is a combined exponential and gaussian distribution called an exponentially modified Gaussian (EMG) distribution or ex-gaussian distribution.
rtDist(n = 10000, gaussMean = 600, gaussSD = 50, expRate = 200)
n |
Number of observations |
gaussMean |
Mean of the gaussian distribution |
gaussSD |
SD of the gaussian distribution |
expRate |
Rate of the exponential function |
double
# Example 1: x <- rtDist() hist(x, 100) # Example 2: x <- rtDist(n = 20000, gaussMean = 800, gaussSD = 50, expRate = 100) hist(x, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.