count_event_by: count_event_by: funciton to count event, subgroup number inside TableSubgroupCox, TableSubgroupMultiCox
Description
Function to count event, subgroup number
Usage
count_event_by(
formula,
data,
count_by_var = NULL,
var_subgroup = NULL,
decimal.percent = 1
)
Value
Table with event, subgroup number
Arguments
- 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
Details
This function is used inside TableSubgroupCox, TableSubgroupMultiCox for calculation
Examples
Run this codeif (FALSE) {
if (interactive()) {
}
}
Run the code above in your browser using DataLab