powered by
Looping for Univariable Cox Regression
uv_cox( data, time, event, variable, adjust, round = 3, p_threshold = 0.05, order_by.hr = TRUE )
data
time variable
event variable
variable names for univariable cox regression. If missing, it will be column names of data except y and adjust
adjust variable names for univariable cox regression
digital round, 3 is defaulted
threshold for p value to show star. 0.05 is defaulted
logical. TRUE means order in or by decreasing. FLASE is defaulted
univariable cox regression results
# NOT RUN { uv_cox(data = mtcars, time = 'qsec',event = 'vs') # }
Run the code above in your browser using DataLab