Learn R Programming

ProgModule (version 0.1.0)

get_univarCox_result: Get univarCox result.

Description

The function `get_univarCox_result` is used to calculate the result of Cox univariate analysis.

Usage

get_univarCox_result(freq_matrix, sur)

Value

The result of Cox univariate analysis.

Arguments

freq_matrix

The mutations matrix,generated by `get_mut_status`.

sur

A nx2 data frame of samples' survival data,the first line is samples' survival event and the second line is samples' overall survival.

Examples

Run this code
#load the data
data(mut_status)
sur<-system.file("extdata","sur.csv",package ="ProgModule")
sur<-read.delim(sur,sep=",",header=TRUE,row.names=1)
#perform the function `get_univarCox_result`.
univarCoxresult.example<-get_univarCox_result(freq_matrix=mut_status,sur)

Run the code above in your browser using DataLab