summary_tibble: Make a summary tibble out of model or model summary object

View source: R/summary_tibble.R

summary_tibbleR Documentation

Make a summary tibble out of model or model summary object

Description

This function takes a lm or glm model or model summary object and returns a tibble with key measures of interest (e.g., coefficient estimate, p-values). These measures may change depending on the type of model.

Usage

summary_tibble(x, stars = TRUE, clean = FALSE, p_name = NULL)

Arguments

x

Model or model summary object.

stars

Create 'stars' column containing asterisks indicating significance.

clean

Clean names using janitor::clean_names. FALSE by default.

p_name

Optional. Name of p-value column. If p-values are not in a column named either "Pr(>|t|)" or "Pr(>|z|)", the 'stars' argument will not work without this argument.

Value

A tibble

Examples

m1 <- lm(mpg ~ cyl + hp + wt, data = mtcars)
summary_tibble(m1)

Faunalytics/faunalytics documentation built on Nov. 2, 2024, 12:05 a.m.