This example below uses the lm
function and tidy(..., conf.int=TRUE)
easily generates summary estimates and C.I for multiple model objects.
library(tidyverse)
library(broom)
mtcars %>%
gather(predictor, measure, -mpg) %>%
group_by(predictor) %>%
do(tidy(lm(mpg ~ measure, .),conf.int=TRUE))
How do I generate similar output using rms::ols
function ? tidy
does not work on ols
so is there a way to tweak the output from ols
function to include C.I from multiple model objects ? Thanks in advance.