Generates a gt table of summary of QTc, dQTc and ddQTc over time stratified by dose

tabulate_ecg_param_summary(
  data,
  ntime_col,
  dose_col,
  ecg_param_col,
  delta_ecg_param_col,
  ecg_param_name,
  unit = "",
  group_col = NULL,
  reference_dose = NULL,
  ecg_param_conf_int = 0.95,
  delta_ecg_param_conf_int = 0.9,
  decimals = 2,
  row_group_label = NULL,
  title = NULL,
  ...
)

Arguments

data

A data frame containing C-QT analysis dataset

ntime_col

An unquoted column name for nominal time data

dose_col

An unquoted column name for dose data

ecg_param_col

An unquoted column name for QTc measurements

delta_ecg_param_col

An unquoted column name for deltaQTc measurements

ecg_param_name

A string of the ecg parameter being summarized, e.g. QTc or HR

unit

A string of the unit for ecg_parameter

group_col

An unquoted column name for additional grouping column

reference_dose

A reference dose value for comparison calculations

ecg_param_conf_int

Confidence interval for QTc summary stats default 95%

delta_ecg_param_conf_int

Confidence interval for dQTc summary stats default 90%

decimals

Number of decimals to fmt the table to default is 2, N column is 0

row_group_label

Optional label for the dose/dose + group column

title

Optional title for the table, it will be wrapped in gt::md()

...

Optional arguments for gt::tab_options

Value

a gt table of the QTc/deltaQTc/delta delta QTc summary

Examples

data_proc <- cqtkit_data_verapamil %>% preprocess()
tabulate_ecg_param_summary(
 data_proc,
 NTLD,
 DOSEF,
 QTCF,
 deltaQTCF,
 "QTc",
 "ms",
 reference_dose = "0 mg")
Baseline Corrected
Baseline and Placebo
Time (hr) N
Observed QTc (ms)
QTc (ms)
Corrected QTc (ms)
Mean 95% CI Mean 90% CI Mean 90% CI
0 mg 0.50 22 387.48 [380.47, 394.50] −8.28 [−10.64, −5.92] [—, —]
1.00 22 390.33 [382.70, 397.97] −5.43 [−8.01, −2.84] [—, —]
1.50 22 390.34 [383.03, 397.65] −5.42 [−7.90, −2.93] [—, —]
2.00 22 393.48 [385.74, 401.21] −2.28 [−4.20, −0.36] [—, —]
2.50 22 391.69 [383.77, 399.62] −4.07 [−7.62, −0.51] [—, —]
3.00 22 389.91 [382.10, 397.71] −5.85 [−8.86, −2.85] [—, —]
3.50 22 386.34 [379.56, 393.11] −9.42 [−12.80, −6.05] [—, —]
4.00 21 388.02 [379.94, 396.09] −7.73 [−10.98, −4.49] [—, —]
5.00 22 386.37 [378.32, 394.43] −9.39 [−13.01, −5.77] [—, —]
6.00 22 388.35 [380.22, 396.47] −7.41 [−12.47, −2.36] [—, —]
7.00 22 386.40 [378.56, 394.25] −9.36 [−14.04, −4.68] [—, —]
8.00 22 386.27 [378.05, 394.48] −9.49 [−13.83, −5.16] [—, —]
12.00 22 382.67 [375.20, 390.15] −13.09 [−16.89, −9.29] [—, —]
14.00 22 383.61 [376.01, 391.22] −12.15 [−15.53, −8.77] [—, —]
24.00 21 390.77 [382.89, 398.65] −5.00 [−9.06, −0.94] [—, —]
120 mg 0.50 21 389.86 [381.92, 397.80] −5.86 [−8.22, −3.51] 2.41 [−0.84, 5.67]
1.00 21 395.46 [388.58, 402.33] −0.27 [−3.32, 2.78] 5.15 [1.25, 9.06]
1.50 21 391.53 [383.99, 399.06] −4.20 [−7.34, −1.06] 1.21 [−2.70, 5.13]
2.00 21 397.24 [389.10, 405.39] 1.52 [−1.72, 4.76] 3.80 [0.12, 7.48]
2.50 21 396.74 [388.41, 405.06] 1.01 [−2.92, 4.94] 5.07 [−0.10, 10.25]
3.00 21 393.10 [384.61, 401.59] −2.63 [−5.90, 0.65] 3.23 [−1.11, 7.57]
3.50 21 389.82 [381.20, 398.44] −5.91 [−9.74, −2.08] 3.52 [−1.47, 8.50]
4.00 21 391.84 [382.88, 400.80] −3.89 [−7.47, −0.30] 3.85 [−0.88, 8.57]
5.00 21 389.49 [381.59, 397.39] −6.24 [−10.59, −1.89] 3.15 [−2.38, 8.67]
6.00 21 390.75 [383.08, 398.42] −4.98 [−9.87, −0.08] 2.44 [−4.44, 9.31]
7.00 21 389.95 [382.66, 397.24] −5.78 [−10.43, −1.12] 3.58 [−2.87, 10.03]
8.00 21 388.72 [381.07, 396.37] −7.01 [−11.50, −2.51] 2.49 [−3.61, 8.58]
12.00 21 385.63 [378.04, 393.22] −10.10 [−14.46, −5.74] 2.99 [−2.66, 8.64]
14.00 21 387.11 [379.37, 394.84] −8.62 [−12.51, −4.73] 3.53 [−1.51, 8.56]
24.00 21 388.86 [381.98, 395.75] −6.86 [−10.62, −3.11] −1.86 [−7.26, 3.54]