star.lm: Get stars for a linear model

View source: R/star.R

star.lmR Documentation

Get stars for a linear model

Description

Get stars for a linear model

Usage

## S3 method for class 'lm'
star(p.val, ...)

Arguments

p.val

A linear model object.

...

Additional arguments (currently not used).

Details

Use the function glance from the package broom to get the p-value of the linear model, and then convert it into stars with the function star.

Value

A character string representing the significance stars.

Examples

# Example usage
lm_model <- lm(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width, data = iris)
#star.lm(lm_model)

Antoine-Masse/KefiR documentation built on July 4, 2024, 11:40 a.m.