Description Usage Arguments Value
View source: R/estimate_twochoiceRL.R
This function runs the EML technique to recover behavior in a two-choice decision task.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
data |
simulated two-choice task data |
param |
randomly generated initial parameters. |
prior_mean |
mean priors for x1 and x2, respectively. Defaults to mean 0 for both parameters. |
prior_sd |
standard deviation priors for x1 and x2, respectively. Defaults to 5 for both parameters. |
fn |
objective function being minimized |
opt |
optimization algorithm used. Defaults to trust-region method (trm) |
radius |
starting and maximum allowed trust region radius. Defaults to 1 and 5. |
nRes |
number of restarts. Defaults to 5. |
iter |
iteration of algorithm |
eml_data |
data to be passed for succeeding iterations |
progress_bar |
track completion time of estimation. Defaults to TRUE. |
A list containing the sum log-likelihood, eml estimates of parameter 1 per subject, eml estimates of parameter 2 per subject, laplace values of parameter 1 per subject, laplace values of parameter 2 per subject.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.