3.13 rm_uv_mv

This function will combine two tables created by rm_uvsum and rm_mvsum, using tableOnly=T. All covariates must appear in the univariate table, but covariates can be missing from the multivariable table.

data("mtcars")
uv_tab <- rm_uvsum(covs=c("wt","hp","gear"),response='mpg',data=mtcars,tableOnly=T)
mv_fit <- lm(mpg~wt+hp,data=mtcars)
mv_tab <- rm_mvsum(mv_fit,tableOnly = T)
rm_uv_mv(uv_tab,mv_tab)
Covariate Unadjusted Estimate(95%CI) N p Adjusted Estimate(95%CI) p (adj)
wt -5.34 (-6.49,-4.20) 32 <0.001 -3.88 (-5.17,-2.58) <0.001
hp -0.07 (-0.09,-0.05) 32 <0.001 -0.03 (-0.05,-0.01) 0.001
gear 3.92 (1.25,6.59) 32 0.003