get_univarCox_result {ProgModule} | R Documentation |
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)
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. |
Value
The result of Cox univariate analysis.
Examples
#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)
[Package ProgModule version 0.1.0 Index]