####################################################################################
# Detect-Guess variant of the Two-High Threshold model.
# The encoding and motor execution times are assumed to be equal for each category.
# The process completion times for both failed detections will be suppressed.
####################################################################################
mdl_2HTM <- "
# targets
do+(1-do)*g
(1-do)*(1-g)
# lures
(1-dn)*g
dn+(1-dn)*(1-g)
# do: detect old; dn: detect new; g: guess
"
model <- to_ertmpt_model(mdl_file = mdl_2HTM)
## removing the process times (tau) for the failed (="minus") detection ("do" and "dn")
new_model <- tau2zero(model = model, names = c("dn", "do"),
outcomes = c("minus", "minus"), values = 0)
new_model
## removing the process times (tau) for the failed (="minus") detection ("do" and "dn")
new_model <- set_tau_zero(model = model, names = c("dn", "do"),
outcomes = c("minus", "minus"), values = 0)
new_model
Run the code above in your browser using DataLab