Return a confidence interval as a tidy data frame. This directly wraps the
confint()
function, but ensures it follows broom conventions:
column names of conf.low
and conf.high
, and no row names.
confint_tidy(x, conf.level = 0.95, func = stats::confint, ...)
a model object for which confint()
can be calculated
confidence level
A function to compute a confidence interval for x
. Calling
func(x, level = conf.level, ...)
must return an object coercable to a
tibble. This dataframe like object should have to columns corresponding
the lower and upper bounds on the confidence interval.
extra arguments passed on to confint
A tibble with two columns: conf.low
and conf.high
.
confint_tidy