Skip to contents

Verbs

The universal entry, the single-engine pins, the feasibility planner, and approximation validation.

flexybayes() fb()
Bayesian Mixed Models with ASReml Syntax
flexybayes_stream()
Fit a mixed model to an out-of-core dataset by streaming aggregation
fb_inla()
Fit a flexyBayes model via the INLA engine
fb_brms()
Fit a flexyBayes model via the brms (Stan) engine
fb_plan()
Plan a flexyBayes fit without firing the backend
validate_approximation()
Validate an approximate model fit against its bias bound
proceed()
Advance a deferred-execution object into its fit

Ingest adapters

Turn a model specification into a backend-agnostic representation.

fb_from_asreml()
Ingest an ASReml-format model specification into the flexyBayes IR
fb_from_brms()
Ingest a brms-format formula into the flexyBayes IR

Constructor nouns

The classed input constructors: priors, covariance carriers, approximation schemes and engine selections.

fb_prior()
Specify priors via the PC-canonical hybrid DSL
fb_cov()
Construct a structured-covariance carrier
fb_approx()
Construct an approximation-scheme specification
fb_engine()
Construct an inference-engine specification
is_fb_cov()
Test whether an object is an fb_cov carrier
is_fb_approx()
Test whether an object is an fb_approx specification
is_fb_engine()
Test whether an object is an fb_engine specification

Accessors and discovery

Routing trace, refusal vocabulary, canonical names, prior summary, status.

backend_decision()
Backend dispatch trace for a flexyBayes fit
canonical_names()
Canonical parameter-name view for a flexyBayes fit
fb_backend_status()
Report inference-backend readiness
fb_refusals()
List flexyBayes refusal reasons
fb_register_refusals()
Register a package's refusal reasons
fb_refuse()
Raise a registered refusal
fb_isolated_lapply()
Run jobs, each in its own R process
prior_summary()
Resolved-prior summary for a flexyBayes fit
ranef()
Random-effect predictions from a flexyBayes fit
vpredict()
Posterior functionals of the variance components
fb_complete_grid()
Complete a design grid before fitting
cat_code()
Emit the generated backend code for a deferred review object

Cross-package interop

Tidiers, emmeans, marginaleffects, and draws conversion.

tidy(<flexybayes>)
Tidy a flexyBayes fit into a one-row-per-term data frame
tidy(<flexybayes_inla>)
Tidy a per-row INLA fit into a one-row-per-term data frame
glance(<flexybayes>) glance(<flexybayes_inla>)
Glance at a flexyBayes fit
augment(<flexybayes>) augment(<flexybayes_inla>)
Augment a flexyBayes fit with fitted values and residuals
emm_basis(<flexybayes>) emm_basis(<flexybayes_inla>)
emmeans support: estimation basis (default method)
recover_data(<flexybayes>) recover_data(<flexybayes_inla>)
emmeans support: recover model data (default method)
get_coef(<flexybayes>) get_coef(<flexybayes_inla>)
marginaleffects support: fixed-effect coefficients (default method)
get_vcov(<flexybayes>) get_vcov(<flexybayes_inla>)
marginaleffects support: covariance (default method)
get_predict(<flexybayes>) get_predict(<flexybayes_inla>)
marginaleffects support: population-level predictions (default method)
get_data(<flexybayes>) get_data(<flexybayes_inla>)
Model data accessor (default method)
set_coef(<flexybayes>) set_coef(<flexybayes_inla>)
marginaleffects support: set coefficients (default method)
fb_as_draws_simple()
Extract per-parameter posterior draws from a model fit
as_draws_df(<flexybayes>) as_draws(<flexybayes>) as_draws_matrix(<flexybayes>)
Posterior draws from a flexyBayes fit
loo(<flexybayes>)
Approximate leave-one-out cross-validation for a flexyBayes fit
pp_check(<flexybayes>)
Posterior predictive check for a flexyBayes fit
fb_kfold()
Exact K-fold cross-validation of an ordinal fit

Methods

S3 methods on the fit objects. Most are reached through their generic (for example coef(), predict()); they are listed here for completeness.

summary(<flexybayes>)
Summarise a flexyBayes fit
print(<summary.flexybayes>)
Print a flexyBayes summary
summary(<flexybayes_aggregated>)
Summarise a fit run on the aggregated representation
summary(<flexybayes_glm>)
Summary for flexybayes GLM-compatible object
summary(<fb_plan>)
Summarise an <fb_plan> — verbose form
print(<flexybayes>)
Print a compact description of a flexyBayes fit
print(<flexybayes_aggregated>)
Print a flexybayes_aggregated object
print(<flexybayes_brms>)
Print method for the brms-passthrough flexybayes subclass
print(<fb_approx>)
Print an fb_approx specification
print(<fb_cov>)
Print an fb_cov carrier
print(<fb_engine>)
Print an fb_engine specification
print(<fb_plan>)
Print an <fb_plan> — flight-checklist form
coef(<flexybayes>) coef(<flexybayes_ordinal>)
Extract coefficients from a flexyBayes fit
coef(<flexybayes_inla>)
Coefficients of a per-row INLA fit
confint(<flexybayes>)
Credible intervals for the fixed effects of a flexyBayes fit
confint(<flexybayes_brms>)
Credible intervals on the brms path
confint(<flexybayes_inla>)
Credible intervals for the fixed effects of a per-row INLA fit
confint(<flexybayes_glm>)
Credible intervals for flexybayes_glm
vcov(<flexybayes>)
Extract variance-covariance matrix of fixed effects
vcov(<flexybayes_inla>)
Posterior covariance of a per-row INLA fit's fixed effects
fb_variance_draws()
Joint posterior draws of the variance components of an INLA fit
fb_marginal_cov() as.matrix(<fb_marginal_cov>)
The marginal covariance of the response of a fitted model
predict(<flexybayes_brms>)
Predict from a brms-passthrough flexybayes fit
predict(<flexybayes_inla>) print(<fb_predict_new>)
Population-level predictions from a per-row INLA fit
print(<fb_predict_classify>)
Print a classify means table
fitted(<flexybayes>)
Extract fitted values
fitted(<flexybayes_inla>)
In-sample fitted values from a per-row INLA fit
fitted(<flexybayes_aggregated>)
Fitted values of an aggregated count fit
fitted(<flexybayes_ordinal>) predict(<flexybayes_ordinal>)
Category probabilities of an ordinal fit
residuals(<flexybayes>)
Extract residuals
residuals(<flexybayes_inla>)
Response residuals from a per-row INLA fit
residuals(<flexybayes_aggregated>)
Residuals of an aggregated count fit
plot(<flexybayes>) plot(<flexybayes_inla>) plot(<flexybayes_brms>) plot(<flexybayes_aggregated>) plot(<flexybayes_glm>)
Plot diagnostics for a flexyBayes model
anova(<flexybayes>)
Compare flexyBayes models on a plug-in information criterion
logLik(<flexybayes>)
Plug-in conditional log-likelihood of a flexyBayes fit
logLik(<flexybayes_inla>)
Log-likelihood of a per-row INLA fit (not computed)
logLik(<flexybayes_brms>)
Log-likelihood on the brms path
nobs(<flexybayes>)
Number of observations a flexyBayes fit was fitted to
family(<flexybayes>)
Extract model family
family(<flexybayes_inla>)
Response family of a per-row INLA fit
formula(<flexybayes>)
Extract model formula
formula(<flexybayes_inla>)
Fixed-effect model formula of a per-row INLA fit
model.matrix(<flexybayes>)
Fixed-effect model matrix of a flexyBayes fit
update(<flexybayes>)
Re-fit a flexyBayes model with modified arguments
fb_refit()
Refit a model on new data, with added fixed columns
as.data.frame(<fb_plan>)
Coerce an <fb_plan> to data.frame — one row, stable columns

Genomics

Genomic selection and the cross-engine genomic accessors.

fb_gblup_cv()
Genomic-prediction accuracy by cross-validation
genomic_summary()
Genomic summary of a fitted relationship model

Datasets

met_example
Example Multi-Environment Trial (MET) Dataset

Package

flexyBayes flexyBayes-package
flexyBayes: Bayesian Mixed Models with ASReml Syntax via INLA and brms