| get_brmsfit | R Documentation |
Returns the underlying brms::brmsfit object held in a bayes_tls
workflow, ready for any brms / posterior / bayesplot helper (e.g.
brms::bayes_R2(), brms::mcmc_plot(), posterior::as_draws_df()).
Prefer this over reaching into workflow$fit directly: it errors clearly
on an unfitted workflow instead of silently returning NULL. Pairs with
the predicate has_fit().
get_brmsfit(workflow)
workflow |
A fitted |
The brmsfit object stored in the workflow.
## Not run:
wf <- fit_4pl(std)
fit <- get_brmsfit(wf)
brms::bayes_R2(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.