dprime: dprime

Description Usage Arguments Value

View source: R/dprime.R

Description

Calculate d' for categorisation data. This applies to data where an item pertaining to a category is presented, and the participant answers a category by choosing amongst a set of choices.

Usage

1
dprime(dat, grouping, presented = "Presented", responded = "Responded")

Arguments

dat

A data.frame with the responses in long format (one row per trial).

grouping

The factors used to group the d' calculation by (you probably at least want your participant id there). This should be specified as a vector of strings.

presented

A string containing the name of the data.frame field containing the names of the presented categories. (Defaults to "Presented")

responded

A string containing the name of the data.frame field containing the names of the responded categories. (Defaults to "Responded")

Value

A data.frame with the grouping factors, the presented factor, and two fields d and c that contain the d' and criterion.


egaudrain/catRpillar documentation built on Dec. 20, 2021, 3:22 a.m.