runCox: Multivariate Cox regression

runCoxR Documentation

Multivariate Cox regression

Description

Wrapper function to run multivariate Cox regression using coxph

Usage

runCox(survTab, riskTab, time, endpoint, id = "patientID")

Arguments

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.


lujunyan1118/jyluMisc documentation built on March 8, 2024, 12:17 a.m.