simple_model_wrapper: Simple wrapper for integrate testing

View source: R/wrappers.R

simple_model_wrapperR Documentation

Simple wrapper for integrate testing

Description

This function does the parameter transformations necessary for the model to run.

This function does the parameter transformations necessary for the model to run.

Usage

simple_model_wrapper(rt, A, b_acc, b_rej, t0, drifts, accept, model)

simple_model_wrapper(rt, A, b_acc, b_rej, t0, drifts, accept, model)

Arguments

rt

A vector of response times

A

Start point variability

b_acc

positive evidence threshold

b_rej

negative evidence threshold

t0

non decision time parameter

drifts

An array of drift rates, 4 x length(rt) with the columns being vectors of drift rates for accept price, reject price, accept rating, reject rating respectively

accept

Whether we are looking at accept or reject trials

model

The loglikelihood function currently being tested

Value

The log of the likelihood for the rt's for the parameters from the model

The log of the likelihood for the rt's for the parameters from the model

The parameter vector

The vector x should contain the following elements: A number of \alpha values

  • A - the start point variability

  • b^a and b^r, the thresholds to either accept or reject the item.

  • t0 - the residual time, bounded above by the minimum response time for the participant

  • 12 drift rates. For each attribute there are three stimulus levels. For each of these 6 attribute levels there are two drift rates, one drift rate to accept (v^a) and one to reject (v^r)

The vector x should contain the following elements: A number of \alpha values

  • A - the start point variability

  • b^a and b^r, the thresholds to either accept or reject the item.

  • t0 - the residual time, bounded above by the minimum response time for the participant

  • 12 drift rates. For each attribute there are three stimulus levels. For each of these 6 attribute levels there are two drift rates, one drift rate to accept (v^a) and one to reject (v^r)


gjcooper/gcphd-model_of_dce documentation built on March 25, 2024, 8:57 a.m.