star.lm | R Documentation |
Get stars for a linear model
## S3 method for class 'lm'
star(p.val, ...)
p.val |
A linear model object. |
... |
Additional arguments (currently not used). |
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
.
A character string representing the significance stars.
# Example usage
lm_model <- lm(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width, data = iris)
#star.lm(lm_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.