univ_coxph: univariate and multivariate survival analysis using coxph

View source: R/univ_coxph.R

univ_coxphR Documentation

univariate and multivariate survival analysis using coxph

Description

univariate and multivariate survival analysis using coxph

Usage

univ_coxph(dataframe, y_surv, digits = 4, asnumeric = TRUE)

Arguments

dataframe

Clinic data and covariates ready to be tested. Rows are variables and columns are samples.

y_surv

Survival function contain survival data, usually are obtained form Surv() function in survival package.

digits

Integer indicating the number of decimal places.

asnumeric

indicator that the data will be (True) / not (False) transformed into numeric. Default is true.

Value

Object of class matrix with results.

Author(s)

Xin Yu

Examples

data(demo_survival_data)
data('demo_data',package = "EnMCB")
demo_set<-demo_data$realdata
res<-univ_coxph(demo_set,demo_survival_data)

whirlsyu/EnMCB documentation built on Jan. 25, 2023, 4:33 a.m.