Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 105

Extract summary of regression model in latex

$
0
0

Is there a way to extract the summary of a regression model in a nice latex format like the correlation table I attach below?

enter image description here

# install.packages("dplyr")# install.packages("kableExtra")library(dplyr)library(kableExtra)mlm1 <- lm(mpg ~  . , data = mtcars)summary(mlm1)summary(mlm1) %>%  kbl(caption="Table 1: Summary Statistics of Financial Well-Being                 Score by Gender and Education",       format= "html",                  align="r") %>%   kable_classic(full_width = F, html_font = "helvetica")

Viewing all articles
Browse latest Browse all 105

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>