Skip to contents

Tabulates number of high QTc/deltaQTc observations.

Usage

tabulate_high_qtc_sub(
  data,
  qtc_col,
  deltaqtc_col,
  group_col = NULL,
  group_label = NULL,
  qtc_label = "QTc",
  unit = "ms",
  title = NULL,
  ...
)

Arguments

data

A data frame containing C-QT analysis dataset

qtc_col

An unquoted column name for QTc data

deltaqtc_col

An unquoted column name for deltaQTC data

group_col

An optional unquoted column name of grouping column

group_label

An optional label to use for group column

qtc_label

A string label for the QTc parameter (default: "QTc")

unit

A string for the unit of measurement (default: "ms")

title

Optional string to give the table a title, wrapped in gt::md()

...

Optional additional args to gt::tab_options

Value

A gt table with counts of observations exceeding QTc thresholds (>450, >480, >500 ms) and deltaQTc thresholds (>30, >60 ms)

Examples

data_proc <- preprocess(cqtkit_data_verapamil)

tabulate_high_qtc_sub(data_proc, QTCF, deltaQTCF, group_col = DOSEF, qtc_label = "QTcF")
DOSEF QTcF > 450 ms QTcF > 480 ms QTcF > 500 ms Δ QTcF > 30 ms Δ QTcF > 60 ms
0 mg 0 0 0 0 0
120 mg 0 0 0 0 0