Skip to contents

All functions

add_criterion(<frmtmb_draws>)
Add model comparison criteria to draws
as_tmbstan()
Sample from a frmtmb fit with tmbstan (NUTS)
check_laplace()
Check the Laplace/Wald approximation against NUTS
mcmc_plot() pairs(<frmtmb_draws>) nuts_params() log_posterior() rhat() neff_ratio()
Sampler diagnostics and MCMC plots
ndraws(<frmtmb_draws>) nchains(<frmtmb_draws>) niterations(<frmtmb_draws>) nvariables(<frmtmb_draws>)
Size of a draws object
fixef(<frmtmb_draws>) VarCorr(<frmtmb_draws>) ranef(<frmtmb_draws>) nobs(<frmtmb_draws>) formula(<frmtmb_draws>) family(<frmtmb_draws>) getCall(<frmtmb_draws>) coef(<frmtmb_draws>)
Model structure behind a set of draws
frm_sample()
Sample a model with NUTS
posterior_samples() nsamples() parnames(<frmtmb_draws>)
Deprecated brms draws accessors
stancode(<frmtmb_draws>) standata(<frmtmb_draws>) expose_functions(<frmtmb_draws>) restructure()
Methods a ported brms script may call that frmtmb does not have
fitted(<frmtmb_draws>) predict(<frmtmb_draws>) residuals(<frmtmb_draws>)
Summaries of the posterior predictive quantities
loo_moment_match(<frmtmb_draws>) loo_subsample(<frmtmb_draws>) reloo(<frmtmb_draws>) kfold(<frmtmb_draws>) bridge_sampler() bayes_factor() post_prob()
Refusals for the refit-based and marginal-likelihood brmsfit methods
plot(<frmtmb_draws>)
Trace and histogram plots of draws
posterior_average()
Posterior draws averaged over models
posterior_epred() posterior_linpred() posterior_predict()
Expected-value and predictive draws from sampled parameters
pp_mixture(<frmtmb_draws>)
Posterior mixture-component probabilities
prior_draws()
Prior draws
as_draws(<frmtmb_draws>) as.data.frame(<frmtmb_draws>) as.array(<frmtmb_draws>) as_draws_matrix(<frmtmb_draws>) as_draws_array(<frmtmb_draws>) as_draws_df(<frmtmb_draws>) as_draws_list(<frmtmb_draws>) as_draws_rvars(<frmtmb_draws>) as.mcmc() as.matrix(<frmtmb_draws>)
Convert draws to a posterior draws object
bayes_R2(<frmtmb_draws>)
Bayesian R-squared
conditional_smooths(<frmtmb_draws>)
Smooth terms of draws
log_lik(<frmtmb_draws>) logLik(<frmtmb_draws>)
Pointwise log-likelihood of posterior draws
loo(<frmtmb_draws>) waic(<frmtmb_draws>) loo_compare(<frmtmb_draws>) psis() LOO(<frmtmb_draws>) WAIC(<frmtmb_draws>)
Approximate leave-one-out cross-validation
loo_R2(<frmtmb_draws>)
LOO-adjusted R-squared of draws
loo_model_weights(<frmtmb_draws>)
Model weights by stacking or pseudo-BMA
loo_epred(<frmtmb_draws>) loo_linpred(<frmtmb_draws>) loo_predict(<frmtmb_draws>) loo_predictive_interval(<frmtmb_draws>)
Leave-one-out expectations of draws
posterior_summary(<frmtmb_draws>) posterior_interval() predictive_interval() predictive_error()
Summaries and intervals of draws
update(<frmtmb_draws>)
Sample a model again with changed sampling arguments