Learn R Programming

marginaleffects (version 0.3.3)

tidy.marginalmeans: Tidy a marginalmeans object

Description

Tidy a marginalmeans object

Usage

# S3 method for marginalmeans
tidy(x, conf.int = TRUE, conf.level = 0.95, ...)

Arguments

x

An object produced by the marginalmeans function.

conf.int

Logical indicating whether or not to include a confidence interval.

conf.level

The confidence level to use for the confidence interval if conf.int=TRUE. Must be strictly greater than 0 and less than 1. Defaults to 0.95, which corresponds to a 95 percent confidence interval.

...

Additional arguments are pushed forward to predict().

Value

A "tidy" data.frame of summary statistics which conforms to the broom package specification.