sstable.survcomp | R Documentation |
A function to summarize results for a survival model with the treatment arm (variable "arm") as the main covariate
sstable.survcomp(
model,
data,
add.risk = TRUE,
time = Inf,
reference.arm = c("B", "A"),
compare.method = c("cox", "rmst", "cuminc"),
compare.args = list(),
add.prop.haz.test = TRUE,
medsum = TRUE,
p.compare = TRUE,
digits = 2,
pdigits = 3,
pcutoff = 0.001,
footer = NULL,
flextable = TRUE,
bg = "#F2EFEE"
)
model |
a formula which can be used to fit the 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 fit the survival model. |
add.risk |
[ |
time |
[ |
reference.arm |
[ |
compare.method |
[ |
add.prop.haz.test |
[ |
medsum |
[ |
p.compare |
[ |
digits |
[ |
pdigits |
[ |
pcutoff |
[ |
footer |
a [ |
flextable |
[ |
bg |
[ |
compare.args: |
a list of additional args for compare.methods, For compare.method = 'cox', it is
'add.prop.haz.test' [ For compare.method = 'cuminc', args are fed to For compare.method = 'rmst', args are fed to |
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.