powered by
Fits an ex-Gaussian to observed go-RT data, simulates synthetic datasets under the horse-race model, and estimates SSRT on each.
ssrt_simulate( data, n_iter = 2000, n_trials = NULL, p_stop = NULL, ssrt_true = NULL, conf = 0.95, stop_col = "vol", rt_col = "RT_exp", acc_col = "correct", ssd_col = "soa", seed = 42 )
Object of class ssrt_simulate.
ssrt_simulate
data.frame in SSRTcalc long format.
MC iterations. Default 2000.
Trials per simulated dataset. NULL uses nrow(data).
Stop-trial proportion. NULL uses observed proportion.
Known true SSRT for parameter recovery. Default NULL.
Confidence level. Default 0.95.
Column names.
Random seed. Default 42.
data(adaptive) d <- adaptive[adaptive$SubjID == 1, ] s <- ssrt_simulate(d, n_iter=500) print(s)
Run the code above in your browser using DataLab