runCox | R Documentation |
Wrapper function to run multivariate Cox regression using coxph
runCox(survTab, riskTab, time, endpoint, id = "patientID")
survTab |
A tidy table contain the survival data in three columns: identifier, time, event |
riskTab |
A tidy table that contain the risk factors that need to be tested. One column must contain the sample identifiers. All other columns will be treated as risk factors and tested in the multivariate Cox model. |
time |
The column name of the time variable in the survTab. |
endpoint |
The column name of the event variable in the survTab. |
id |
The column name of the sample identifier, which is used to join the two table. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.