Extract the individual-level ('random') effects from a moultmcmc object.

# S3 method for moultmcmc
ranef(object, summary = TRUE, probs = c(0.025, 0.975), pars = NULL, ...)

Arguments

object

a moultmcmc model

summary

logical, should posterior samples be summarised for each parameter

probs

numeric, desired quantiles for summary statistics

pars

Optional names of coefficients to extract. By default, all coefficients are extracted.

...

Currently ignored.

Value

If summary is TRUE, a matrix for the individual-level effects. If summary is FALSE, a matrix with one row per posterior draw and one column per individual-level effect.