lba-class | R Documentation |
lba
ObjectThe 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.
setLBA(model, population_distribution = NULL, is_positive_drift = TRUE)
model |
A model object containing the model specification |
population_distribution |
Optional population distribution for
parameters (default |
is_positive_drift |
a Boolean value indicating whether to use strictly positive drift rates |
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.
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
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.