sdt.data: Create data for one sample

Description Usage Arguments Value Examples

View source: R/sdt.data.R

Description

Creates a dataset with 1000 participants to be used with the main function rate.statistics. The parameters can be changed or it can be ran with the defaults by calling sdt.data()

Usage

1
sdt.data(tot.signal = 85, tot.lure = 100, min.hits = 0.5, min.cr = 0.6)

Arguments

tot.signal

A number - The total number of signals i.e. blue dots that have to be detected Default = 85

tot.lure

A number - The total number of lures i.e. number green dots that should not be responded to, Default = 100

min.hits

A number - Minimum proportion of hits. Dafalt to 0.5

min.cr

A number - Minimum proportion of correct rejections. Dafalt to 0.6

Value

A data table with the following columns

hits

total number of hits per participant randomly chosen between tot.signal and the minimum proportion hits specified

corRej

total number of correct rejection per participant randomly chosen between tot.lure and the minimum proportion critical rejections specified

miss

total number of misses per participant - left from the total signals after removing hits

falarm

total number of false alarms per participant - left from the total lures after removing correct rejections

Examples

1
2
3
   sdt.data()

   sdt.data(tot.signal = 15, tot.lure = 150, min.hits = 0.8, min.cr = 0.5)

gretat/sdt.rmcs documentation built on May 17, 2019, 8:36 a.m.