powered by
Simulates datasets of increasing size and computes SSRT variance as a function of trial count (power curve).
ssrt_power( data, trial_counts = c(10, 20, 30, 50, 75, 100, 150, 200), n_iter = 500, target_se = 10, stop_col = "vol", rt_col = "RT_exp", acc_col = "correct", ssd_col = "soa", seed = 42 )
Object of class ssrt_power.
ssrt_power
data.frame for calibration.
Stop-trial counts to evaluate.
MC iterations per count. Default 500.
Target SE in ms. Default 10.
Column names.
Random seed. Default 42.
data(adaptive) d <- adaptive[adaptive$SubjID == 1, ] p <- ssrt_power(d, trial_counts=c(10,30,50), n_iter=200) print(p)
Run the code above in your browser using DataLab