hpd.summary {emmeans} | R Documentation |
This function computes point estimates and HPD intervals for each
factor combination in object@emmGrid
. While this function
may be called independently, it is called utomatically by the S3 method
summary.emmGrid
when the object is based on a Bayesian model.
(Note: the level
argument, or its default, is passed as prob
).
hpd.summary(object, prob, by, type, point.est = median, ...)
object |
an |
prob |
numeric probability content for HPD intervals (note: when not specified,
the current |
by |
factors to use as |
type |
prediction type as in |
point.est |
function to use to compute the point estimates from the posterior sample for each grid point |
... |
required but not used |
an object of class summary_emm
if(require("coda")) { # --- requires 'coda' to be installed load(system.file("extdata", "cbpp.RData", package = "emmeans")) cbpp.rg <- do.call(emmobj, cbpp.list) hpd.summary(emmeans(cbpp.rg, "period")) } # --- was tested only if coda is installed