ThSlopeAndLapse: Get threshold, slope and lapse rate from glmData

Description Usage Arguments Value Examples

Description

Works better with subjects' real data rather than simulated trials For simulated trials,use ThAndSlopeForSimData

Usage

1
2
ThSlopeAndLapse(inputData, fitWithLapseRate = TRUE, returnMeans = TRUE,
  whichConditions)

Arguments

inputData

data structured as glmData

fitWithLapseRate

if TRUE, the Probit psychometric function is computed as $\lambda+(1-2*\lambda)Probit$, where lambda is the lapse rate. The lapse rate is computed using the function LapseRateFromHighestContrast

returnMeans

if TRUE, computes average for each subject. Otherwise, returns run-by-run results

whichConditions

conditions to analyse. For natural bias, include conditions 1 and 13

Value

data frame containing threshold, slope and lapse rate of each subject. If requested, can return by-run results, otherwise means of each subject

Examples

1
ThSlopeAndLapse(glmData, returnMeans=TRUE, whichCondition=c(1,13))

armanabraham/chb documentation built on May 10, 2019, 1:39 p.m.