coxph_row: Cox Proportional Hazards Row

coxph_rowR Documentation

Cox Proportional Hazards Row

Description

Cox Proportional Hazards Row

Usage

coxph_row(
  data_item,
  data = NULL,
  data_filter = NULL,
  row_digits = NULL,
  include_reference = TRUE
)

Arguments

data_item

item to be taken from data for row

data

separate dataset to use

data_filter

filter to apply to dataset

row_digits

Number of digits to include in the HR

include_reference

whether to include a row for the reference level of a factor

Value

row for inclusion in 'first_table'

Examples

library(survival)
first_table(lung,
  .column_variable = Surv(time, status),
   ECOG = coxph_row(factor(ph.ecog), row_digits = 2)
 )


NikNakk/tableone documentation built on March 22, 2022, 1:19 p.m.