set_params | R Documentation |
rtmpt_model
listBy using parameter = "probs"
you can specify which of the probability parameters should be set to a constant
by using values between zero and one. If you use NA
the probability will be estimated. By using
parameter = "tau_minus"
or parameter = "tau_plus"
you can suppress process times/rates. Here 0
will
suppress the named process and NA
allows the process time/rate to be estimated.
set_params(model, parameter, names, values = NA)
model |
A list of the class |
parameter |
Character of length one indicating the parameter to change. Allowed characters:
|
names |
Character vector with process names. |
values |
Numerical vector of length
Example:
Example: |
A list of the class rtmpt_model
.
Raphael Hartmann
delta2delta
#################################################################################### # 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_rtmpt_model(mdl_file = mdl_2HTM) ## removing the process times for the failed detection ("tau_minus") ## of the detection parameters ("dn", "do") model <- set_params(model = model, parameter = "tau_minus", names = c("dn", "do"), values = c(0,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.