Description Usage Arguments Value Examples
View source: R/estimate_bandit2arm.R
This function runs the MLE technique to recover behavior from the simulated task data.
1 2 3 4 5 6 7 | mle_bandit2arm(
data = bandit2arm_data,
param = list(init.x1, init.x2),
fn = "mle.objectiveFunction",
opt = "TRM",
nRes = 5
)
|
data |
simulated two-armed bandit data |
param |
randomly generated initial parameters. |
fn |
objective function being minimized |
opt |
optimization algorithm used. Defaults to trust-region method (trm) |
nRes |
number of restarts. Defaults to 5. |
A list containing the sum log-likelihood, mle estimates of parameter 1 per subject, mle estimates of parameter 2 per subject, laplace values of parameter 1 per subject, laplace values of parameter 2 per subject.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.