calcHitFaRates: Calculating hit and false alarm rates

View source: R/calcHitFaRates.R

calcHitFaRatesR Documentation

Calculating hit and false alarm rates

Description

This function calculates hit and false alarm rates to be used by dPrime and responseBias. The default it to apply log-linear transformed percentage values.

Usage

calcHitFaRates(
  oldRating,
  ratings,
  oldNew,
  oldNewLevels = c(0, 1),
  transformation = TRUE
)

Arguments

oldRating

Values corresponding to 'old' responses.

ratings

A vector containing all responses.

oldNew

An vector containing whether an item was new/not-studied or old/studied.

oldNewLevels

An vector containing possible levels of old_newInformation. The first value or level is for new/not-studied items and the second value is for old/studied items. Defaults to c(0,1).

transformation

Logical indicating to choose a log-linear transformation following Snodgrass & Corwin (1988). Default is TRUE.

Value

The function returns a data frame with hitRate and falseAlarm_rate.

Author(s)

Joern Alexander Quent, alexander.quent@rub.de

References

Snodgrass, J. G., & Corwin, J. (1988). Pragmatics of measuring recognition memory: Applications to dementia and amnesia. Journal of Experimental Psychology: General, 117(1), 34–50. https://doi.org/10.1037/0096-3445.117.1.34


JAQuent/memoryROC documentation built on June 9, 2025, 1:43 a.m.