rtDescriptives {DstarM} | R Documentation |
Descriptives of reaction time data
Description
Descriptives of reaction time data
Usage
rtDescriptives(formula = NULL, data, plot = TRUE, verbose = TRUE)
Arguments
formula |
A formula object of the form: |
data |
A dataframe for looking up data specified in formula.
For backwards compatibility this can also be with: a column named |
plot |
Logical, should a density plot of all condition-response pairs be made? |
verbose |
Logical, should a table of counts and proportions be printed? |
Details
This function and rtHist
are helper functions to inspect raw data.
Value
Invisibly returns an object of class 'D*M'. It's first element is table
and contains raw counts and proportions for
condition response pairs, conditions, and responses. It's second element plot
contains a ggplot object.
Examples
tt <- seq(0, 5, .01)
pars <- matrix(.5, 5, 2)
pars[1, ] <- 1
pars[2, ] <- c(0, 2)
dat <- simData(n = 3e3, pars = pars, tt = tt, pdfND = dbeta(tt, 10, 30))
x <- rtDescriptives(data = dat)
print(x$table, what = 'cr')
print(x$table, what = 'c')
print(x$table, what = 'r')