Description Usage Arguments Value Author(s)
A function to summarize results for a Cox survival model by treatment arm (variable "arm") and subgroup.
1 2 3 | sstable.survcomp.subgroup(base.model, subgroup.model, data, digits = 2,
pdigits = 3, pcutoff = 0.001, footer = NULL, flextable = TRUE,
bg = "#F2EFEE", ...)
|
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. |
a flextable-type table or a list with values/headers/footers
This function was originally written by Marcel Wolbers. Lam Phung Khanh did some modification.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.