simulate_dataset {LATERmodel} | R Documentation |
Simulate a dataset given model parameters.
Description
Generates samples from a set of provided LATER model parameters, with the option to iteratively replace invalid samples (reaction times <= 0).
Usage
simulate_dataset(
n,
later_mu,
later_sd,
early_sd = NULL,
seed = NA,
allow_negative_times = FALSE
)
Arguments
n |
Number of samples (trials) |
later_mu |
Mean of the later component. |
later_sd |
Standard deviation of the later component. |
early_sd |
Standard deviation of the early component,
or |
seed |
Seed for the random number generator |
allow_negative_times |
If |
Value
Vector of response times (in seconds)
Examples
simulate_dataset(n = 100, later_mu = 5, later_sd = 1)
simulate_dataset(n = 100, later_mu = 5, later_sd = 1, early_sd = 5)
[Package LATERmodel version 0.2.0 Index]