ch.ZtestDprimeEqualZero: A function tests whether a dPrime is significantly Greater...

ch.ZtestDprimeEqualZeroR Documentation

A function tests whether a dPrime is significantly Greater than/different from Zero

Description

This function tests whether a dPrime is significantly Greater than/different from Zero. It calculates variance using: Miller, J. (1996). The sampling distribution of d’. Perception & Psychophysics, 58, 65-72.

Usage

ch.ZtestDprimeEqualZero(
  NtargetPresent,
  NtargetAbsent,
  probFA,
  probHit,
  oneTailed = TRUE
)

Arguments

NtargetPresent

the number of target present trials.

NtargetAbsent

the number of target absent trials.

probFA

the proportion of False Alarms.

probHit

the proportions of Hits.

oneTailed

a boolean specifying whether the test is one tailed. DEFAULT = TRUE (because we assume that dPrimes are bounded by Zero on the low end).

Value

a vector containing the z value (zVal) and the p value (p val) of the test.

Examples

ch.ZtestDprimeEqualZero (100,100, .2, .7)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.