R: Tidy Data and 'Geoms' for Bayesian Models

# Tidy Data and 'Geoms' for Bayesian Models

## Documentation for package ‘tidybayes’ version 3.0.7

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS

## Help Pages

A C D E F G H L M N P R S T U X

tidybayes-package | Tidy Data and 'Geoms' for Bayesian Models

## -- A --

add_draws | Add draws to a data frame in tidy format
add_epred_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
add_epred_rvars | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
add_fitted_draws | Deprecated functions, arguments, and column names in tidybayes
add_fitted_samples | Deprecated functions, arguments, and column names in tidybayes
add_linpred_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
add_linpred_rvars | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
add_predicted_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
add_predicted_rvars | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
add_predicted_samples | Deprecated functions, arguments, and column names in tidybayes
add_residual_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
apply_prototypes | Decorate a model fit or sample with data types recovered from the input data
as_data_list | Data lists for input into Bayesian models
as_data_list.character | Data lists for input into Bayesian models
as_data_list.data.frame | Data lists for input into Bayesian models
as_data_list.data_list | Data lists for input into Bayesian models
as_data_list.default | Data lists for input into Bayesian models
as_data_list.factor | Data lists for input into Bayesian models
as_data_list.list | Data lists for input into Bayesian models
as_data_list.logical | Data lists for input into Bayesian models
as_data_list.numeric | Data lists for input into Bayesian models
as_sample_data_frame | Deprecated functions, arguments, and column names in tidybayes
as_sample_tibble | Deprecated functions, arguments, and column names in tidybayes

## -- C --

combine_chains | Combine the chain and iteration columns of tidy data frames of draws
compare_levels | Compare the value of draws of some variable from a Bayesian model for different levels of a factor
compose_data | Compose data for input into a Bayesian model

## -- D --

data_list | Data lists for input into Bayesian models
density_bins | Density bins and histogram bins as data frames

## -- E --

emmeans_comparison | Use emmeans contrast methods with compare_levels
epred_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
epred_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
epred_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
epred_draws.stanreg | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
epred_rvars | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
epred_rvars.brmsfit | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
epred_rvars.default | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
epred_rvars.stanreg | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
extract_samples | Deprecated functions, arguments, and column names in tidybayes

## -- F --

fitted_draws | Deprecated functions, arguments, and column names in tidybayes
fitted_draws.default | Deprecated functions, arguments, and column names in tidybayes
fitted_samples | Deprecated functions, arguments, and column names in tidybayes

## -- G --

gather_draws | Extract draws of variables in a Bayesian model fit into a tidy data format
gather_emmeans_draws | Extract a tidy data frame of draws of posterior distributions of "estimated marginal means" (emmeans/lsmeans) from a Bayesian model fit.
gather_emmeans_draws.default | Extract a tidy data frame of draws of posterior distributions of "estimated marginal means" (emmeans/lsmeans) from a Bayesian model fit.
gather_emmeans_draws.emm_list | Extract a tidy data frame of draws of posterior distributions of "estimated marginal means" (emmeans/lsmeans) from a Bayesian model fit.
gather_emmeans_samples | Deprecated functions, arguments, and column names in tidybayes
gather_lsmeans_samples | Deprecated functions, arguments, and column names in tidybayes
gather_pairs | Gather pairwise combinations of values from key/value columns in a long-format data frame
gather_rvars | Extract draws from a Bayesian model into tidy data frames of random variables
gather_samples | Deprecated functions, arguments, and column names in tidybayes
gather_terms | Deprecated functions, arguments, and column names in tidybayes
gather_variables | Gather variables from a tidy data frame of draws from variables into a single column
GeomIntervalh | Deprecated functions, arguments, and column names in tidybayes
GeomPointintervalh | Deprecated functions, arguments, and column names in tidybayes
geom_dotsh | Deprecated functions, arguments, and column names in tidybayes
geom_dotsintervalh | Deprecated functions, arguments, and column names in tidybayes
geom_eye | Deprecated functions, arguments, and column names in tidybayes
geom_eyeh | Deprecated functions, arguments, and column names in tidybayes
geom_halfeyeh | Deprecated functions, arguments, and column names in tidybayes
geom_intervalh | Deprecated functions, arguments, and column names in tidybayes
geom_pointintervalh | Deprecated functions, arguments, and column names in tidybayes
geom_slabh | Deprecated functions, arguments, and column names in tidybayes
get_variables | Get the names of the variables in a fitted Bayesian model
get_variables.default | Get the names of the variables in a fitted Bayesian model
get_variables.mcmc | Get the names of the variables in a fitted Bayesian model
get_variables.mcmc.list | Get the names of the variables in a fitted Bayesian model
ggeye | Deprecated functions, arguments, and column names in tidybayes

## -- H --

histogram_bins | Density bins and histogram bins as data frames

## -- L --

linpred_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
linpred_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
linpred_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
linpred_draws.stanreg | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
linpred_rvars | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
linpred_rvars.brmsfit | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
linpred_rvars.default | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
linpred_rvars.stanreg | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame

## -- M --

mean_hdcih | Deprecated functions, arguments, and column names in tidybayes
mean_hdih | Deprecated functions, arguments, and column names in tidybayes
mean_qih | Deprecated functions, arguments, and column names in tidybayes
median_hdcih | Deprecated functions, arguments, and column names in tidybayes
median_hdih | Deprecated functions, arguments, and column names in tidybayes
median_qih | Deprecated functions, arguments, and column names in tidybayes
mode_hdcih | Deprecated functions, arguments, and column names in tidybayes
mode_hdih | Deprecated functions, arguments, and column names in tidybayes
mode_qih | Deprecated functions, arguments, and column names in tidybayes

## -- N --

nest_rvars | Nest and unnest 'rvar' columns in data frames
n_prefix | Prefix function generator for composing dimension index columns

## -- P --

parameters | Deprecated functions, arguments, and column names in tidybayes
point_intervalh | Deprecated functions, arguments, and column names in tidybayes
predicted_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_draws.stanreg | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
predicted_rvars | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
predicted_rvars.brmsfit | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
predicted_rvars.default | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
predicted_rvars.stanreg | Add 'rvar's for the linear predictor, posterior expectation, posterior predictive, or residuals of a model to a data frame
predicted_samples | Deprecated functions, arguments, and column names in tidybayes
predict_curve | Deprecated: Prediction curves for arbitrary functions of posteriors
predict_curve_density | Deprecated: Prediction curves for arbitrary functions of posteriors

## -- R --

recover_types | Decorate a model fit or sample with data types recovered from the input data
residual_draws | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
residual_draws.brmsfit | Add draws from the posterior fit, predictions, or residuals of a model to a data frame
residual_draws.default | Add draws from the posterior fit, predictions, or residuals of a model to a data frame

## -- S --

sample_draws | Sample draws from a tidy-format data frame of draws
spread_draws | Extract draws of variables in a Bayesian model fit into a tidy data format
spread_rvars | Extract draws from a Bayesian model into tidy data frames of random variables
spread_samples | Deprecated functions, arguments, and column names in tidybayes
stat_ccdfintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_cdfintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_ccdfintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_cdfintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_dotsh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_dotsintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_eyeh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_gradientintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_halfeyeh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_intervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_pointintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_dist_slabh | Deprecated functions, arguments, and column names in tidybayes
stat_dotsh | Deprecated functions, arguments, and column names in tidybayes
stat_dotsintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_eyeh | Deprecated functions, arguments, and column names in tidybayes
stat_gradientintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_halfeyeh | Deprecated functions, arguments, and column names in tidybayes
stat_histintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_intervalh | Deprecated functions, arguments, and column names in tidybayes
stat_pointintervalh | Deprecated functions, arguments, and column names in tidybayes
stat_slabh | Deprecated functions, arguments, and column names in tidybayes
summarise_draws.grouped_df | Summaries of draws in 'grouped_df' objects

## -- T --

tidybayes | Tidy Data and 'Geoms' for Bayesian Models
tidybayes-deprecated | Deprecated functions, arguments, and column names in tidybayes
tidybayes-models | Models supported by tidybayes
tidy_draws | Get a sample of posterior draws from a model as a tibble
tidy_draws.brmsfit | Get a sample of posterior draws from a model as a tibble
tidy_draws.CmdStanFit | Get a sample of posterior draws from a model as a tibble
tidy_draws.CmdStanMCMC | Get a sample of posterior draws from a model as a tibble
tidy_draws.data.frame | Get a sample of posterior draws from a model as a tibble
tidy_draws.default | Get a sample of posterior draws from a model as a tibble
tidy_draws.draws | Get a sample of posterior draws from a model as a tibble
tidy_draws.jagsUI | Get a sample of posterior draws from a model as a tibble
tidy_draws.matrix | Get a sample of posterior draws from a model as a tibble
tidy_draws.mcmc.list | Get a sample of posterior draws from a model as a tibble
tidy_draws.MCMCglmm | Get a sample of posterior draws from a model as a tibble
tidy_draws.runjags | Get a sample of posterior draws from a model as a tibble
tidy_draws.stanfit | Get a sample of posterior draws from a model as a tibble
tidy_draws.stanreg | Get a sample of posterior draws from a model as a tibble
tidy_samples | Deprecated functions, arguments, and column names in tidybayes

## -- U --

ungather_draws | Turn tidy data frames of variables from a Bayesian model back into untidy data
ungather_samples | Deprecated functions, arguments, and column names in tidybayes
unnest_rvars | Nest and unnest 'rvar' columns in data frames
unspread_draws | Turn tidy data frames of variables from a Bayesian model back into untidy data
unspread_samples | Deprecated functions, arguments, and column names in tidybayes

## -- X --

x_at_y | Generate lookup vectors for composing nested indices