makeCIs: Build plot-ready confidence intervals

Description Usage Arguments Examples

Description

Wrapper for confint() that handles the output munging for models of class "lm", "lmerMod" and "lmerModLmerTest".

Usage

1
makeCIs(mod, level = 0.95, all = FALSE)

Arguments

mod

A model object of class "lm", "lmerMod", or "lmerModLmerTest".

level

Numeric (0-1). The confidence level required.

all

Logical. Return only the first fixed effect on RHS of the model formula (FALSE) or all fixed effects (TRUE).

Examples

1
2
3
4
5
mod <- lm(Sepal.Length ~ Species, data = iris)
ci <- makeCIs(mod)

mods <- mtcars %>% split(.$cyl) %>% purrr::map(~ lm(mpg ~ hp, data = .))
cis <- purrr::map(mods, makeCIs)

stevehoang/assayr documentation built on May 24, 2019, 7:20 a.m.