clinic_getCoxTable: get a model result of univariate and multivariate Cox...

Description Usage Arguments Value Author(s) Examples

Description

getCoxTable help get a model result of univariate and multivariate Cox regression Models.

Usage

1
2
3
4
5
6
7
getCoxTable(data,
            time.col,
            status.col,
            stepwise=F,direction="both",
            cluster,control,
            dig=2,
            names = "test1")

Arguments

data

a data frame containing cluster,time and status value.

time.col

colnames of time value

status.col

colnames of status value

stepwise

Whether use stepwise strategy to simple multiple cox model

direction

method of stepwise.See MASS::stepAIC.

cluster

the cluster values like age and sex.

dig

2.the decimal place of output numeric value.

names

part of file name.

Value

a list containing results of univariate and multivariate models.

Author(s)

Weibin Huang

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library(survival)
data(lung)
cluster = c("age","sex","ph.ecog","ph.karno","pat.karno")
## Not use stepwise
l1 <- getCoxTable(data=lung,
                  time.col="time",
                  status.col = "status",
                  cluster=cluster,
                  dig=2,
                  names = "a1")

## Use stepwise
l1 <- getCoxTable(data=lung,
                  time.col="time",
                  status.col = "status",
                  cluster=cluster,
                  stepwise=T,
                  dig=2,
                  names = "a2")

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.