average.dprime: Average dprime and lag of each bins

Description Usage Arguments Value See Also Examples

Description

A convenience function to aggregate the dprime and lag values from a list of multiple data frames obtained through get.dprime function.

Usage

1
average.dprime(bin.list)

Arguments

bin.list

a list containing multiple data frames, each of which are separate output of the function get.dprime

Value

An object of class mrsat.data, which is a data frame containing following columns:

bin

timing bins

lags

means of time points at which the responses occured within each timing bin

dprimes

calculated as dprime = qnorm(hit) - qnomr(fa)

condition

values based on experimental conditions defined in the argument scalelist to which the dprime values belong to.

See Also

get.dprime, plot.mrsat.data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#need to define the scale.list
exp1.signal <- list(noint = c(1,3), 
                obrel = c(5,8), 
                obrelsub = c(11, 14))

exp1.noise <- list(noint = c(2,4), 
               obrel = c(6, 7, 9, 10), 
               obrelsub = c(12, 13, 15, 16))

#load data

data(Auditory_demo)

### this isn't really meaningful, but for the purpose of demo,
### tag bins in two diffent ways (with "fixed" vs. "free" window)
### and then obtain two data frames containing slightly different
### dprime and lag values.

s01.bins.fixed <- get.bins(Auditory_demo, auditory=TRUE, window = "fixed")
s01.bins.free <- get.bins(Auditory_demo, auditory=TRUE,  window = "free")


s01.dp.fixed <- get.dprime(s01.bins.fixed$bins, 
  signal.list = exp1.signal, noise.list = exp1.noise, is.index=TRUE,
  binmax=14)

s01.dp.free <- get.dprime(s01.bins.free$bins, 
  signal.list = exp1.signal, noise.list = exp1.noise, is.index=TRUE,
  binmax=14)
  
### average the two data frames

mean.dp <- average.dprime(list(s01.dp.fixed, s01.dp.free))

plot(mean.dp)

matsukik/mrsat documentation built on May 21, 2019, 12:57 p.m.