CoxResult: Function to tidy up results from CoxPH model

Description Usage Arguments Value Examples

View source: R/CoxResult.R

Description

Function to tidy up results from CoxPH model

Usage

1
2
3
4
5
6
7
CoxResult(
  coxph.model,
  rowname.suffix,
  colname.suffix = NULL,
  confint = FALSE,
  prettyDig = NULL
)

Arguments

coxph.model

An object of class coxph from package survival

rowname.suffix

Suffix to add to rownames to resulting table

colname.suffix

Optional argument to add suffix to column names of resulting table

confint

Logical argument to determine whether confindence intervals need to be included in the output

prettyDig

Optional numeric input to indicate number of significant digits in the output table

Value

output Dataframe with summary of results form a coxph object

Examples

1
2
test.coxph=coxph(Surv(DNA.visit.FUTIME.DTH, DEAD12) ~ GENDER+resid.mtDNA+DNA.visit.AGE+CENTER, data=test)
test.results=CoxResult(test.coxph, "all", prettyDig=3)

foramashar/fashaR documentation built on Nov. 15, 2020, 5:05 a.m.