Skip to contents

Creates a data frame summarizing number of subjects in each treatment group.

Usage

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 with unique subject counts per treatment group and overall total

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