sstable.survcomp: Summarize results for a Cox survival model with the treatment...

Description Usage Arguments Value Author(s)

View source: R/sstable.R

Description

A function to summarize results for a Cox survival model with the treatment arm (variable "arm") as the main covariate

Usage

1
2
3
sstable.survcomp(model, data, add.risk = TRUE,
  add.prop.haz.test = TRUE, medsum = TRUE, digits = 2, pdigits = 3,
  pcutoff = 0.001, footer = NULL, flextable = TRUE, bg = "#F2EFEE")

Arguments

model

a formula which can be used to fit the Cox survival model. This formula can include other covariates than arm BUT arm must be the first covariate in the model.

data

a data frame to fir the Cox survival model.

add.risk

a logical value specifies whether the event probability ("absolute risk") at time "infinity" should be displayed.

add.prop.haz.test

a logical value specifies whether a test for proportional hazards should be added.

medsum

a logical value specifies whether median (IQR) of time to event should be described.

digits

a number specifies number of significant digits for numeric statistics.

pdigits

a number specifies number of significant digits for p value.

pcutoff

a number specifies threshold value of p value to be displayed as "< pcutoff".

footer

a vector of strings to be used as footnote of table.

flextable

a logical value specifies whether output will be a flextable-type table.

bg

a character specifies color of the odd rows in the body of flextable-type table.

Value

a flextable-type table or a list with values/headers/footers

Author(s)

This function was originally written by Marcel Wolbers. Lam Phung Khanh did some modification.


lampk/C306 documentation built on Sept. 11, 2019, 8:03 a.m.