sstable.survcomp.subgroup | R Documentation |
A function to summarize results for a survival model by treatment arm (variable "arm") and subgroup.
sstable.survcomp.subgroup(
base.model,
subgroup.model,
overall.model,
data,
time = Inf,
reference.arm = c("B", "A"),
compare.method = c("cox", "rmst", "cuminc"),
compare.args = list(),
p.compare = TRUE,
digits = 2,
pdigits = 3,
pcutoff = 0.001,
footer = NULL,
flextable = TRUE,
bg = "#F2EFEE",
overall = TRUE,
...
)
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). |
overall.model |
an optional one-sided formula for additional terms for overall population only |
data |
a data frame to fit the survival model. |
time |
[ |
reference.arm |
[ |
compare.method |
[ |
p.compare |
[ |
digits |
[ |
pdigits |
[ |
pcutoff |
[ |
footer |
a [ |
flextable |
[ |
bg |
[ |
overall |
[ |
... |
arguments that are passed to sstable.survcomp |
add.risk |
[ |
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. Trinh Dong and Lam Phung Khanh did some modification.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.