Skip to contents

Fit the hpl_glmm_mix Stan model and return fit object

Usage

run_hpl_glmm_mix_model(
  standata,
  method = c("sample", "vb", "pathfinder"),
  run_estimation = FALSE,
  use_multithread = FALSE,
  grainsize = NULL,
  ...
)

Arguments

standata

A list of data to be passed to the Stan model, matching the format of the `standata` element of a `seqlist` object

method

One of `c("sample", "vb", "pathfinder")`

run_estimation

one of `c(0, 1)`; if 0, samples from the prior only and ignores the data

use_multithread

Use the multithread-enabled version of the Stan model?

grainsize

Grainsize for multithread

...

Named arguments to the `sample()` method of CmdStan model objects: <https://mc-stan.org/cmdstanr/reference/model-method-sample.html>

Value

An object of class `CmdStanMCMC`