nu2nu {rtmpt} | R Documentation |
Set process drift rates equal
Description
Setting multiple process drift rates (nu) equal. One of the process drift rates will be estimated and the other named drift rates will be set to equal the former. The equality can be removed by only using one name of a process.
Usage
nu2nu(model, names, keep_consts = FALSE)
set_nu_equal(model, names, keep_consts = FALSE)
Arguments
model |
A list of the class |
names |
Character vector giving the names of the processes for which the process drift rates should be equal. If
|
keep_consts |
Can be one of the following
|
Value
A list of the class drtmpt_model
.
Author(s)
Raphael Hartmann
See Also
delta2delta
, a2const
, a2a
, nu2const
, omega2const
, and omega2omega
Examples
####################################################################################
# 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 drift rates 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_drtmpt_model(mdl_file = mdl_2HTM)
## make do = dn
new_model <- nu2nu(model = model, names = c("do", "dn"))
new_model
## make do = dn
new_model <- set_nu_equal(model = model, names = c("do", "dn"))
new_model