fit_IPD_mcmc | R Documentation |
Fit a finite mixture model using MCMC.
fit_IPD_mcmc(
d,
covariates = NULL,
n_strategies = 12,
eta_moves = 4,
eta_arb = 4,
n_chains = 1,
n_cores = 1,
iterations = 1000,
warmup = 500,
adapt_delta = 0.95,
max_treedepth = 12
)
d |
A data list of the format exported by simulate_round_robin(). |
covariates |
A matrix of covariates. Row number should equal the number of players. |
n_strategies |
The number of considered strategies. PrisonR considers 12 by default. Changing this requires advanced editing of the Stan code. Good luck! |
eta_moves |
A term that controls the plausibility of implementation errors. |
eta_arb |
A term that controls the plausibility of implementation errors. |
n_chains |
Number of MCMC chains. |
n_cores |
Number of cores to use. |
iterations |
Total number of MCMC iterations. |
warmup |
Warmup iterations: "warmup" must be < "iterations". |
adapt_delta |
A term that controls MCMC proposal acceptance rate. |
max_treedepth |
A term that controls the MCMC treedepth. |
A Stan object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.