validate_lba_parameters | R Documentation |
simulate_lba_trials()
generates synthetic choices and response times
from an LBA configuration passed as an S4 model object plus a parameter
vector.
validate_lba_parameters()
checks basic validity/compatibility of a
named parameter vector for a given model object.
validate_lba_parameters(rt_model_r, parameters_r, debug = FALSE)
simulate_lba_trials(
rt_model_r,
parameters_r,
n_trial = 1L,
use_inverse_method = FALSE,
debug = FALSE
)
rt_model_r |
An S4 model object describing the LBA structure and metadata. (Typically created by package-internal builders.) |
parameters_r |
A named numeric vector of LBA parameters (e.g.,
|
debug |
Logical. If |
n_trial |
Integer (default |
use_inverse_method |
Logical. If |
Internal interfaces for simulating trial-level data and validating parameter inputs for the Linear Ballistic Accumulation (LBA) model. These functions are implemented in C++ via Rcpp and are primarily intended for use by higher-level R helpers rather than for direct end-user calls.
These functions are exposed to R via Rcpp attributes and callable from R. They assume inputs with correct dimensions and names; minimal argument checking is performed for speed. See also high-level helpers in this package for safer user-facing APIs.
simulate_lba_trials()
returns a data.frame
with one row per
simulated trial and columns:
trial
— Trial index (integer)
choice
— Index of the winning accumulator (integer)
rt
— Simulated response time (numeric)
validate_lba_parameters()
returns a logical scalar indicating
whether parameters_r
is valid for rt_model_r
.
simulate() on class "lba"
,
dlba
, plba
Other LBA simulation:
simulate_lba
# See ?simulate_lba for the user-facing simulation function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.