m1 <- lm(mpg ~ hp, data = mtcars)
m2 <- lm(mpg ~ hp + wt, data = mtcars)
# Without dvnames, column names are (1) and (2)
modelsummary(list(m1, m2))
# With dvnames, they are "mpg" and "mpg"
modelsummary(dvnames(list(m1,m2)))
Run the code above in your browser using DataLab