powered by
Multivariable Logistic Regression
mv_cox(data, time, event, x, direction = "no", summary = TRUE, ...)
data
time variable
event variable
variable names for univariable logistic regression. If missing, it will be column names of data except y and adjust
direction for stepwise regression. Four options: no, backward, forward and both. Defaulted is no
logical. Whether to return summary results. TRUE as defaulted
arguments passed to step() function.
multivariable logistic regression results
# NOT RUN { mv_cox(data = mtcars, time = 'qsec',event = 'am', direction = 'both') # }
Run the code above in your browser using DataLab