Skip to contents

All functions

as_draws(<bml>) as_draws_df(<bml>) as_draws_matrix(<bml>) as_draws_array(<bml>)
Extract posterior draws from a bml model
bernoulli() weibull() cox()
Model families for bml
bml()
Bayesian Multilevel Models for Micro-Macro Analysis (Multiple Membership) Using JAGS
bmlCompare()
Compare fitted bml models in a publication-style table
bml_delta()
Temporal composition change: matched decomposition of a feature difference
bml_realloc()
Reallocation of membership weights toward high-attribute members
bml_turnover()
Membership turnover between two snapshots
coalgov
Coalition Governments in Western Democracies (1944-2014)
coef(<bml>)
Extract combined coefficients from a bml model
coefPlot()
Coefficient plot for fitted bml models
conditional_effects()
Conditional effects of main-formula predictors
est()
Mark a shape parameter as estimated
fe()
Fixed effects: no pooling
fitted(<bml>)
Posterior expectations of the linear predictor
fix()
Fix a coefficient to a known value
fixef(<bml>)
Extract fixed coefficients from a bml model
fn()
The aggregation function of an mm() block
get_prior()
List every settable prior of a bml model
glance(<bml>)
Glance at a fitted bml model
hm()
Define a hierarchical nesting structure
id()
Specify identifier variables for multiple-membership and hierarchical structures
log_lik()
Pointwise log-likelihood of a bml model
loo(<bml>)
Efficient approximate leave-one-out cross-validation for bml models
make_jagscode() make_jagsdata()
Generate the JAGS model code / data without fitting
mcmcDiag()
Summarize MCMC convergence diagnostics
mm()
Define a multiple-membership block (the micro-to-macro aggregation)
monetPlot()
Visualize posterior distributions with density and trace plots
posterior_predict()
Draws from the posterior predictive distribution
pp_check()
Posterior predictive checks for bml models
predict(<bml>)
Predictions from a bml model
prior()
Structured prior specifications
ranef(<bml>)
Extract random effects from a bml model
re()
Random effects: partial pooling
summary(<bml>)
Summarize a fitted bml model
tidy(<bml>)
Tidy a fitted bml model
varDecomp()
Variance decomposition for fitted bml models
vars()
Specify member-level attributes for mm() blocks
w()
Specify the membership weights of an mm() block
waic(<bml>)
Widely applicable information criterion for bml models