Continuous Performance Test (CPT) is a classical test for attention. There are many methods used to calculate the performance index of this task, and here only includes those common ones.
Arguments
- data
Raw data of class
data.frame
.- .by
The column name(s) in
data
used to be grouped by. If set toNULL
(default), all data will be treated as from one subject and there will be no grouping columns in the value returned.- .input, .extra
Each is a
list()
containing all the input variable names and special values for certain variables. See more in the details section.
Value
An object with the same class as data
contains following values:
- nc
Count of correct responses.
- mrt
Mean reaction time of hits.
- rtsd
Standard deviation of reaction times of hits.
- dprime
Sensitivity (d').
- commissions
Number of errors caused by action.
- omissions
Number of errors caused by inaction.