Skip to contents

The $fit() method of an MRPModel object fits the model using Stan's main Markov chain Monte Carlo (MCMC) algorithm. Check out the More examples of R6 classes vignette for usage examples.

Usage

fit(n_iter = 2000, n_chains = 4, seed = NULL, ...)

Arguments

n_iter

Number of MCMC iterations per chain (including warmup iterations). Default is 2000.

n_chains

Number of MCMC chains to run. Default is 4.

seed

Random seed for reproducibility. Default is NULL.

...

Additional arguments passed to CmdStanR $sample() method.

Value

No return value, called for side effects.