
Produce counts of Number of subjects, number of events, number of subjects with events, and proportion of subjects with events
Source:R/by_strata_by_trt.R
count_set.RdA short cut - instead of calling the individual function
(n_sub, n_event, n_subj_event, p_subj_event), one call to this
function will produce all the described functions. This can be useful to
save compute time as inside the chef pipeline there will be fewer
iterations.
Arguments
- dat
data.table. The analysis data set.
- event_index
vector of integers that index the rows in
datthat match the definition of an 'event'. Matching is done via theINDEX_column indat.- cell_index
A vector of integers referencing the rows of
dat(as specified by theINDEX_column indat) that match the population to be analyzed. See the "Endpoint Events" vignette in ramnog for more information.- subjectid_var
character. Name of the subject identifier variable in the data (default is "USUBJID").
- ...
Optional parameters.