sstable.survcomp.subgroup: Summarize results for a Cox survival model by treatment arm...

Description Usage Arguments Value Author(s)

View source: R/sstable.R

Description

A function to summarize results for a Cox survival model by treatment arm (variable "arm") and subgroup.

Usage

1
2
3
sstable.survcomp.subgroup(base.model, subgroup.model, data, digits = 2,
  pdigits = 3, pcutoff = 0.001, footer = NULL, flextable = TRUE,
  bg = "#F2EFEE", ...)

Arguments

base.model

a formula from which sub-group specific estimates are extracted (!! arm must be the first covariate in the model).

subgroup.model

a formula of the form "~subgrouping.variable1+subgrouping.variable2" (!! subgrouping.variable must be factors and there should be nothing on the left-hand side of the formula).

data

a data frame to fir the Cox survival model.

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.

...

arguments that are passed to sstable.survcomp.

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.