This is a major release with breaking changes. Code written for 1.0.0 needs to be updated, and estimates for the same data can differ because of the new defaults (see “Changes in results”).
RTmax is now rt_max.ErrExc is now err_exc
(meanSSRT() only).mid_run_avg(): stop_value is replaced by
trial_labels, a named character vector with elements
go and stop
(e.g. c(go = "Go", stop = "Stop")). The estimators gained
the same argument; the labels "go" and "stop"
used to be fixed.meanSSRT() no longer has RTmin,
RTexc and RTrep. Slow and missing go RTs are
handled by the new argument replace_slow (see below).SSRT is
ssrt, meanRT is mean_rt,
meanSSD is mean_ssd, medRT is
med_rt, nthRT is nth_rt,
pResp is p_resp and nGOs is
n_go_rt.n_go_rt (formerly nGOs) now counts the go
trials that have an RT, not all go trials.rt_max, and
trial labels that do not occur in the data. Previously, some of these
cases ran and returned NaN.replace_slow = TRUE is the new default in all three
estimators. Go omissions and go RTs slower than rt_max
(default 600 ms) are replaced by the participant’s slowest valid go RT
(the slowest correct go RT that is not slow), as recommended by
Verbruggen et al. (2019). If a participant has no valid go RT, the
affected trials become NA and a warning lists the
participants. In meanSSRT() this replaces the former
RTrep/RTexc options, so estimates can differ
from 1.0.0. If desired, replace_slow = FALSE should produce
identical results.intSSRT() now bases the rank of the nth RT on
the number of go trials with an RT. With
replace_slow = FALSE and go omissions, the rank previously
counted the omissions as well.medSSRT() no longer returns NA when go
omissions remain in the data (replace_slow = FALSE).sst_example: simulated stop-signal data from 12
participants with a tracking staircase, including the latent go RTs and
stop latencies (go_rt, ssrt_true) for checking
the accuracy of the estimators.trial_labels argument for meanSSRT(),
intSSRT(), medSSRT() and
mid_run_avg(), so data with other labels for go and stop
trials can be used directly.replace_slow = FALSE in
intSSRT() and medSSRT(). These are intended
for methodological comparison only.return_full = TRUE returns the same components in every
estimator, including mid_run_estimate and
n_runs.# 1.0.0
meanSSRT(dat, RTmax = 600, ErrExc = TRUE)
# 2.0.0
meanSSRT(dat, rt_max = 600, err_exc = TRUE)