Learn R Programming

qbrms (version 1.0.1)

qbrms_emmeans: Estimated Marginal Means for qbrms models

Description

Compute estimated marginal means (least-squares means) for factor terms and their combinations for a qbrms_fit, using a multivariate-normal approximation to the posterior of the fixed effects.

Usage

qbrms_emmeans(object, specs, at = NULL, nsim = 1000, prob = 0.95, ...)

Value

A data frame of class qbrms_emmeans.

Arguments

object

A qbrms_fit.

specs

Character vector naming factor(s) for EMMs, or a string containing a formula with a right-hand side (for example, "~ group" or "y ~ group"). If multiple terms are provided, a full grid is used.

at

Optional named list giving values at which to hold other predictors. Numerics are fixed at their means if not supplied; factors at their modal level.

nsim

Number of posterior draws for uncertainty.

prob

Interval mass (default 0.95).

...

Additional arguments (currently not used).