Insert Overall/Summary Row
Usage
summary_row_cat(
datain,
sum_row_label = "Any Term",
byvaryn = "N",
a_subset = NA,
pctdisp = "TRT",
sigdec = 2,
pctsyn = "Y",
var = "ANY",
uniqid = "USUBJID"
)Arguments
- datain
Input dataset
ADAMor intermediate within summary function- sum_row_label
Label for Summary Row to be displayed, if Y.
- byvaryn
Include by variable or not? For single overally row, "N"
- a_subset
Analysis Subset condition specific to categorical analysis.
- pctdisp
Method to calculate denominator (for %) by. Possible values:
"TRT","VAR","COL","SUBGRP","CAT","NONE","NO","DPTVAR","BYVARxyN"- sigdec
Number of decimal places for % displayed in output
- pctsyn
Display Percentage Sign in table or not. Values:
"Y"/"N"- var
Flag Variable to identify Any/Summary Rows
- uniqid
Variable(s) to calculate unique counts of. eg.
"USUBJID","SITEID","ALLCT"
Examples
data("adae")
summary_row_cat(
adae,
a_subset = "TRTEMFL == 'Y'"
)
#> mcatstat success
#> # A tibble: 1 × 11
#> DPTVAR DPTVAL CVALUE DENOMN FREQ DPTVALN PCT CPCT XVAR DPTVARN CN
#> <chr> <chr> <chr> <int> <int> <dbl> <dbl> <chr> <chr> <dbl> <chr>
#> 1 ANY Any Term 218 (96.… 225 218 1 96.9 96.89 1 1 C