4 Multivariable analysis

To create a nice display for multivariable models the multivariable model first needs to be fit.

By default, the variance inflation factor will be shown to check for multicollinearity. To suppress this column set vif=FALSE. Note: variance inflation factors are not computed (yet) for multilevel or GEE models.

glm_fit <- glm(orr~change_ctdna_group+pdl1+age,
               family='binomial',
               data = pembrolizumab)
rm_mvsum(glm_fit, showN = TRUE, vif=TRUE)
OR(95%CI) p-value N VIF
change ctdna group 0.006 73 1.03
Decrease from baseline Reference 33
Increase from baseline 23.92 (2.49, 229.77) 40
pdl1 0.97 (0.95, 0.99) 0.01 73 1.24
age 0.94 (0.87, 1.01) 0.08 73 1.23