Creates a dataframe summarizing number of subjects in each trtreatment group

compute_study_summary(data, trt_col, id_col, group_col = NULL)

Arguments

data

A data frame containing C-QT analysis dataset

trt_col

Column name of treatment group

id_col

Column name of ID

group_col

Optional additional grouping column

Value

a tibble of number of subjects in trt_col (or trt_col + group_col) along with total id_col

Examples

data_proc <- preprocess(cqtkit_data_verapamil)

compute_study_summary(data_proc, TRTG, ID)
#> # A tibble: 3 × 2
#>   grouping      n_sub
#>   <chr>         <int>
#> 1 Total            22
#> 2 Placebo          22
#> 3 Verapamil HCL    21