cpt: Continuous Performance Test

View source: R/cpt.R

cptR Documentation

Continuous Performance Test

Description

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.

Usage

cpt(data, .by = NULL, .input = NULL, .extra = NULL)

Arguments

data

Raw data of class data.frame.

.by

The column name(s) in data used to be grouped by. If set to NULL (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.


psychelzh/preproc.iquizoo documentation built on Oct. 20, 2024, 6:27 p.m.