Description Usage Arguments Value Author(s)
A function to summarize results for a Cox survival model with the treatment arm (variable "arm") as the main covariate
1 2 3 |
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. |
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.