I would like to display the t value and p value from my regression output using the stargazer package. So far, I've found ways to show one or the other. I did find something online that displays both; however, it omits the coefficient names. Is there a function or something else that will enable me to show all three?
library(stargazer)
data("cars")
model <- lm(hp ~ wt, mtcars)
stargazer(model, type='text',report = "csp")
Shows p-values, but no beta coefficient names
shows beta coefficient names, but no pvalues. I would like to keep all three: coefficient names, t stat, and p-value
edit
removed a function used on the website that I did not use