问题
I'm using sjPlot::tab_model()
to create output tables of regressions. (Reproducible example below).
Two quick questions about summary statistics below a table:
- Is there some way that I can report
R^2
andR^2 adjusted
on separate lines? - How can I reorder summary statistics such as
$R^2$
,AIC
, etc?
library("sjPlot")
lm1 <- lm(mpg ~ cyl, mtcars)
lm2 <- lm(mpg ~ hp, mtcars)
lm3 <- lm(mpg ~ cyl + hp, mtcars)
tab_model(lm1, lm2, lm3,
show.ci = 0,
show.aic = 1,
show.loglik = 1,
show.fstat = 1,
show.r2 = 1)
This is the actual output I'm currently getting:
This is my desired output:
来源:https://stackoverflow.com/questions/57505167/sjplottab-model-summary-statistics-reordering-and-splitting-of-r-squared-a