make_brmsfit {chkptstanr}R Documentation

Make brmsfit Object

Description

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

Usage

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.


[Package chkptstanr version 0.1.1 Index]