fitModel: Fit model parameters

Description Usage Arguments Value Author(s) See Also

Description

Estimates parameters for proximal/distal model using multi-criteria estimation (mco)

Usage

1
2
3
  fitModel(dataX, dataResponse,
    responseFunction = calculateResponse,
    sessionBoundaries = NA, fitG = TRUE)

Arguments

dataX

Object of class TimedVector specifying trials including whether signal was rewarded/unrewarded and times

dataResponse

Corresponding observations of subject's response to signal

responseFunction

The function to use to transform the mean estimate into a response

sessionBoundaries

(optional) Vector defining how to group the trials into sessions where the items are the starting indicies for each session (so the last value can be the index after the last trial) and NAs are used for gaps between sessions

fitG

TRUE (default) to estimate g, or FALSE to fix g at 0

Value

Model fit

Author(s)

Chloe Bracis

See Also

computeModel


pdmod documentation built on May 2, 2019, 5:16 a.m.