library("modelsummary")
library(modelsummary)
<- mtcars
dat $horse_power <- dat$hp
dat<- lm(mpg ~ horse_power + factor(cyl), dat)
mod modelsummary(mod, coef_rename = coef_rename)
(1) | |
---|---|
(Intercept) | 28.650 |
(1.588) | |
Horse Power | -0.024 |
(0.015) | |
6 | -5.968 |
(1.639) | |
8 | -8.521 |
(2.326) | |
Num.Obs. | 32 |
R2 | 0.754 |
R2 Adj. | 0.727 |
AIC | 169.9 |
BIC | 177.2 |
Log.Lik. | -79.948 |
F | 28.585 |
RMSE | 2.94 |