getCoxTable: Get a model result of univariate and multivariate Cox...

View source: R/clinic_getCoxTable.R

getCoxTableR Documentation

Get a model result of univariate and multivariate Cox regression Models

Description

Get a model result of univariate and multivariate Cox regression Models

Usage

getCoxTable(
  data,
  time.col,
  status.col,
  is.multiple = T,
  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

is.multiple

whether to do multiple cox regression

stepwise

Whether use stepwise strategy to simple multiple cox model

direction

method of stepwise.See stepAIC.

cluster

the cluster values like age and sex

control

set the control value in a factor vector.For example, in T status,T1 should be a control in the contrast of T3 vs T1.

dig

the decimal place of output numeric value.

names

part of file name.

Author(s)

Weibin Huang<654751191@qq.com>

See Also

stepAIC


huangwb8/luckyExperiment documentation built on June 29, 2023, 10:15 a.m.