####################################################################################
# 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 detection processes ("do" and "dn") will be
# set equal.
####################################################################################
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)
## make do = dn
new_model <- tau2tau(model = model, names = c("do", "dn"), outcome = "both")
new_model
## make do = dn
new_model <- set_taus_equal(model = model, names = c("do", "dn"), outcome = "both")
new_model
## make do = dn
new_model <- set_lambdas_equal(model = model, names = c("do", "dn"), outcome = "both")
new_model
## make do = dn
new_model <- lambda2lambda(model = model, names = c("do", "dn"), outcome = "both")
new_model
Run the code above in your browser using DataLab