Creates a data node (via bg_set_node_data), a brms_fit node consuming
it, dispatches bg_run, and returns the fit node id invisibly while printing
the run handle. Extra arguments in ...
become the fit node's params (e.g. chains, seed, iter).
Usage
bg_fit_brms(project, formula, data, label = NULL, ..., handle = NULL)
Arguments
- project
A bg_handle.
- formula
A brmsformula or formula object.
- data
A data frame of observations.
- label
Optional label for the fit node.
- ...
Passed to the fit node as params (e.g. chains = 4).
- handle
Deprecated synonym for project; accepted with a
once-per-session warning.
Value
The fit node id, invisibly. The run handle is printed.
Details
Call bg_use_brms() first so the brms_fit kind is registered.