
Compute ECG Parameter Summary
compute_ecg_param_summary.RdGenerates a tibble of summary of QTc, dQTc and ddQTc over time stratified by dose.
Usage
compute_ecg_param_summary(
data,
ntime_col,
dose_col,
ecg_param_col,
deltaecg_param_col,
group_col = NULL,
reference_dose = NULL,
conf_int = 0.95
)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
- deltaecg_param_col
An unquoted column name for deltaQTc measurements
- group_col
An unquoted column name for additional grouping column
- reference_dose
Reference dose value for comparison calculations
- conf_int
Numeric confidence interval level (default: 0.9)
Value
A tibble with mean QTc, deltaQTc, and optionally delta-delta QTc values with confidence intervals, stratified by dose and time
Examples
data_proc <- cqtkit_data_verapamil %>% preprocess()
compute_ecg_param_summary(data_proc, NTLD, DOSEF, QTCF, deltaQTCF)
#> # A tibble: 30 × 10
#> dose time n mean_ecg ecg_low ecg_high group mean_decg decg_low
#> <fct> <dbl> <int> <dbl> <dbl> <dbl> <chr> <dbl> <dbl>
#> 1 0 mg 0.5 22 387. 380. 394. 0 mg -8.28 -11.1
#> 2 0 mg 1 22 390. 383. 398. 0 mg -5.43 -8.55
#> 3 0 mg 1.5 22 390. 383. 398. 0 mg -5.42 -8.42
#> 4 0 mg 2 22 393. 386. 401. 0 mg -2.28 -4.60
#> 5 0 mg 2.5 22 392. 384. 400. 0 mg -4.07 -8.37
#> 6 0 mg 3 22 390. 382. 398. 0 mg -5.85 -9.48
#> 7 0 mg 3.5 22 386. 380. 393. 0 mg -9.42 -13.5
#> 8 0 mg 4 21 388. 380. 396. 0 mg -7.73 -11.7
#> 9 0 mg 5 22 386. 378. 394. 0 mg -9.39 -13.8
#> 10 0 mg 6 22 388. 380. 396. 0 mg -7.41 -13.5
#> # ℹ 20 more rows
#> # ℹ 1 more variable: decg_high <dbl>