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.
Here is a bare-bones/stripped-down version of
tidy.ols. It has many limitations (see below), but should do what you want ...limitations
haven't checked p-value calcs etc.ols...It seems like support for
rmsobjects has been discussed a lot on thetidymodels/broomGitHub site but everything there is stale ... I opened an issue if anyone wants to chime in.