This is primarily used internally, wherein the cmdstanr object is converted into a brmsfit object.

make_brmsfit(object, formula = NULL, data = NULL, prior = NULL, path)

Arguments

object

An object of class chkpt_brms

formula

An object of class formula, brmsformula, or brms{mvbrmsformula}. Further information can be found in brmsformula.

data

An object of class data.frame (or one that can be coerced to that class) containing data of all variables used in the model.

prior

An object of class brmsprior.

path

Character string. The path to the folder, that is used for saving the checkpoints.

Value

An object of class brmsfit

Note

This is primarily an internal function that constructs a brmsfit object.