count_event_by | R Documentation |
Function to count event, subgroup number
count_event_by(
formula,
data,
count_by_var = NULL,
var_subgroup = NULL,
decimal.percent = 1
)
formula |
formula with survival analysis |
data |
same data as in formula |
count_by_var |
variables to count subgroup for |
var_subgroup |
1 sub-group variable for analysis, |
decimal.percent |
decimals to show percent of, Default: 1 |
This function is used inside TableSubgroupCox, TableSubgroupMultiCox for calculation
Table with event, subgroup number
group_by
, summarise
, mutate
, bind_rows
, arrange
## Not run:
if (interactive()) {
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.