Calculate basic summary statistics for demographics
Source:R/by_strata_by_trt.R
demographics_counts.Rd
Calculate summary statistics (n_non_missing, n_missing) on a variable for demographics endpoints.
Arguments
- dat
data.table. The analysis data set.
- 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").
- stratify_by
character vector. Set of variables in the analysis data to stratify by.
- strata_var
character. Variable in the analysis data to stratify by specific for this call.
- ...
Optional parameters.