fitQuickfun: Fit a Quick [see Ahissar & Hochstein] function, given data

View source: R/fitQuickfun.R

fitQuickfunR Documentation

Fit a Quick [see Ahissar & Hochstein] function, given data

Description

this function currently does not work as intended

Usage

fitQuickfun(
  x,
  y,
  t = NA,
  model = "static",
  lapseRate = 0.02,
  numGuesses = 25,
  maxThresh = 5
)

Arguments

x

stimulus strengths to fit [positive, e.g., SOA]

y

responses to fit [bernoulli]

t

vector of trial numbers, if desired

model

"static" or "exp," depending on what the parameters correspond to

lapseRate

At what lapse rate were the parameters fit?

maxThresh

How high of a threshold is acceptable (in multiples of the largest stimulus strength value)?

Details

Given data, what are the predicted Quick parameters? Fits [by minimizing negative log likelihood] either a time-evolving or a static Quick function (Ahissar & Hochstein). If time-evolving, then threshold is each fit by a 3-parameter exponential decay function.

Returns a data frame with fit parameters and the [negative] log likelihood.

Examples

example

akcochrane/ACmisc documentation built on Nov. 24, 2024, 11:22 a.m.