uv_cox: Looping for Univariable Cox Regression

Description Usage Arguments Value Examples

View source: R/uv_cox.R

Description

Looping for Univariable Cox Regression

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
uv_cox(
  data,
  time,
  event,
  variable,
  adjust,
  round = 3,
  p_threshold = 0.05,
  order_by.hr = TRUE
)

Arguments

data

data

time

time variable

event

event variable

variable

variable names for univariable cox regression. If missing, it will be column names of data except y and adjust

adjust

adjust variable names for univariable cox regression

round

digital round, 3 is defaulted

p_threshold

threshold for p value to show star. 0.05 is defaulted

order_by.hr

logical. TRUE means order in or by decreasing. FLASE is defaulted

Value

univariable cox regression results

Examples

1
2
uv_cox(data = mtcars,
    time = 'qsec',event = 'vs')

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.

Related to uv_cox in fastStat...