lba-class: An S4 Class of the 'lba' Object

lba-classR Documentation

An S4 Class of the lba Object

Description

The lba class represents an LBA model with slots for model specification, population distribution, and other necessary components. The setLBA function is the constructor for creating lba objects.

Usage

setLBA(model, population_distribution = NULL, is_positive_drift = TRUE)

Arguments

model

A model object containing the model specification

population_distribution

Optional population distribution for parameters (default NULL)

is_positive_drift

a Boolean value indicating whether to use strictly positive drift rates

Details

The LBA model is a popular decision-making model that assumes evidence accumulates linearly toward decision thresholds. The setLBA function initialises this model by creating an S4 object with all necessary components, including automatically calculating node 1 indices and creating an indicator vector to inform whether to use strictly positive drift rates.

Value

An object of class lba containing:

  • The model specification

  • Population distribution (if provided)

  • Node 1 index information

  • Whether to restrict drift rates to be positive

Slots

model

A model object containing the model specification

population_distribution

The population distribution for parameters (can be NULL)

node_1_index

Index information for the first node (automatically calculated)

is_positive_drift

Logical vector indicating positive drift for each accumulator


lbaModel documentation built on Sept. 15, 2025, 9:08 a.m.