Estimate Bayesian Multilevel Models for Compositional Data
Extract Compositional Data from complr
object.
Bayes Factors from Marginal Likelihoods
Fit Bayesian generalised (non-)linear multilevel compositional model v...
Between-person Simple Substitution
Between-person Average Substitution
Build Base Pairwise Substitution
Reference Grid for substitution
model.
Build Sequential Binary Partition
Model Coefficients
Indices from a (dataset of) Multilevel Composition(s) (deprecated.)
Indices from a (dataset of) Multilevel Composition(s)
Constructor function for substitution
class.
Extract Diagnostic Quantities from brmsfit
Models in brmcoda
Index brmcoda
objects
Expected Values of the Posterior Predictive Distribution
Population-Level Estimates
Helper functions used only internally to estimate substitution model
Checks if argument is a brmcoda
object
Checks if argument is a complr
object
Checks if argument is a substitution
object
Interface to shinystan
Efficient approximate leave-one-out cross-validation (LOO)
MCMC Plots Implemented in bayesplot
Mean amounts and mean compositions presented in a complr
object.
Extracting the Model Frame from a Formula or Fit from brmcoda
object
multilevelcoda Simulation Study Results
Extract Number of Observations from brmcoda
object
Create a matrix of output plots from a brmcoda
's brmsfit
object
Estimate pivot balance coordinates by refitting model.
Estimate pivot balance coordinates by rotating sequential binary parti...
Estimate pivot balance coordinates
Trace and Density Plots for MCMC Draws plot
Substitution Plot
Posterior Predictive Checks for brmcoda
Objects
Draws from the Posterior Predictive Distribution
Print a Summary for a fitted brmsfit
model in a brmcoda
object
Print a Summary for a complr
object
Print a Summary for a substitution
object
Summary for a complr
object
Extract Priors of a brmsfit
from a brmcoda
object
Group-Level Estimates
Posterior Draws of Residuals/Predictive Errors
Simple Substitution
Average Substitution
Multilevel Compositional Substitution Analysis
Create a Summary of a fitted brmsfit
model in a brmcoda
object
Create a Summary of a complr
object
Create a Summary of a fitted brmsfit
model from a pivot_coord
obje...
Create a Summary of a Substitution Model represented by a `substitutio...
Update brmcoda
models
Update complr
Variance of compositions presented in a complr
object.
Extract Variance and Correlation Components
Covariance and Correlation Matrix of Population-Level Effects
Within-person Simple Substitution
Within-person Average Substitution
Implement Bayesian Multilevel Modelling for compositional data in a multilevel framework. Compute multilevel compositional data and Isometric log ratio (ILR) at between and within-person levels, fit Bayesian multilevel models for compositional predictors and outcomes, and run post-hoc analyses such as isotemporal substitution models. References: Le, Stanford, Dumuid, and Wiley (2024) <doi:10.48550/arXiv.2405.03985>, Le, Dumuid, Stanford, and Wiley (2024) <doi:10.48550/arXiv.2411.12407>.
Useful links