summary.comparisons: Summarize a 'comparisons' object

View source: R/summary.R

summary.comparisonsR Documentation

Summarize a comparisons object


Summarize a comparisons object


## S3 method for class 'comparisons'
summary(object, conf_level = NULL, transform_avg = NULL, ...)



An object produced by the comparisons function


numeric value between 0 and 1. Confidence level to use to build a confidence interval.


A function applied to the estimates and confidence intervals after the unit-level estimates have been averaged.


Additional arguments are passed to the predict() method supplied by the modeling package.These arguments are particularly useful for mixed-effects or bayesian models (see the online vignettes on the marginaleffects website). Available arguments can vary from model to model, depending on the range of supported arguments by each modeling package. See the "Model-Specific Arguments" section of the ?marginaleffects documentation for a non-exhaustive list of available arguments.


Data frame of summary statistics for an object produced by the comparisons function

See Also

Other summary: glance.marginaleffects(), reexports, summary.marginaleffects(), summary.marginalmeans(), summary.predictions(), tidy.comparisons(), tidy.deltamethod(), tidy.marginaleffects(), tidy.marginalmeans(), tidy.predictions()


mod <- lm(mpg ~ hp * wt + factor(gear), data = mtcars)
con <- comparisons(mod)

# average marginal effects

marginaleffects documentation built on Nov. 24, 2022, 1:06 a.m.