PlotThVsBias: Plot contrast threshold vs subject bias

Description Usage Arguments Details Examples

Description

Shows if contrast threshold correlates with with history weights. For example, subjects with higher visual sensitivity might have smaller biases because they have to rely less on priors and more on sensory evidence

Usage

1
2
PlotThVsBias(inputData, modelWeights, fitWithLapseRate = TRUE,
  conditionsToPlot = 1)

Arguments

inputData

trial-by-trial data of glmData type

modelWeights

regularized model weights of subjects that were computed on 'inputData'

fitWithLapseRate

if TRUE, fits psychometric curves by considering the lapse rate

conditionsToPlot

conditions to plot. Default is '1'

Details

TODO: Function also plots relationship between biases and RT. Need to incorporate this as a switch in parameters (e.g., whatToPlot=c('th', 'rt'))

Examples

1
PlotThVsBias(glmData, regWeights, conditionsToPlot=c(1,13))

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