one.sim.sdt.dprime: Generate fake data for one subject, SDT task, calculating d'

Description Usage Arguments Value

Description

Calculates d' from a fake SDT task for a single subject.

Usage

1
2
one.sim.sdt.dprime(trash = NULL, dprime, sdt.c = 0, n.trials.signal,
  n.trials.noise)

Arguments

trash

A throwaway first argument to allow piping from apply functions like replicate.

dprime

A numeric value specifying the "true d'" from which simulated data will be generated.

sdt.c

A numeric value specifying the "true c" (criterion parameter) from which simulated data will be generated. Defaults to 0 (no bias).

n.trials.signal

A numeric value specifying the number of trials to be presented that contain signal (correct response is "yes").

n.trials.noise

A numeric value specifying the number of trials to be presented that contain noise (correct response is "no").

Value

The estimated d' and c from one round of simulated data. Calculated on Snodgrass-corrected simulated hit and FA rates (Snodgrass & Corwin, 1988).


monicathieu/psytrial documentation built on May 28, 2019, 1 p.m.