Estimates parameters for proximal/distal model using
multi-criteria estimation (mco)
fitModel(dataX, dataResponse,
responseFunction = calculateResponse,
sessionBoundaries = NA, fitG = TRUE)Object of class TimedVector
specifying trials including whether signal was
rewarded/unrewarded and times
Corresponding observations of subject's response to signal
The function to use to transform the mean estimate into a response
(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
TRUE (default) to estimate g, or
FALSE to fix g at 0
Model fit