theta2const | R Documentation |
Setting process probabilities (thetas) to constants or change it back to be estimated.
theta2const(model, names, constants = NA)
set_theta_const(model, names, constants = NA)
model |
An object of the class |
names |
Character vector with process names. |
constants |
Numerical vector of length one or
|
An object of the class ertmpt_model
.
Raphael Hartmann
delta2delta
, tau2zero
, theta2theta
and tau2tau
####################################################################################
# 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 probability for guessing (g) will be set to 0.5.
####################################################################################
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)
## setting g to a constant (0.5):
new_model <- theta2const(model = model, names = c("g"), constants = c(0.5))
new_model
## setting g to a constant (0.5):
new_model <- set_theta_const(model = model, names = c("g"), constants = c(0.5))
new_model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.