Skip to content

compute_deltas

Description

Computes delta variables RR, QTCF, HR, etc

Usage

compute_deltas(
data,
qt_col = QT,
qtbl_col = QTBL,
rr_col = RR,
rrbl_col = RRBL,
hr_col = HR,
hrbl_col = HRBL,
qtcf_col = QTCF,
qtcfbl_col = QTCFBL,
qtcb_col = QTCB,
qtcbbl_col = QTCBBL
)

Arguments

NameDescription
datainput dataset for QT analysis
qt_colan unquoted column name of QT measurements, QT by default
qtbl_colan unquoted column name of baseline QT measurements, QTBL by default
rr_colan unquoted column name of RR measurements, RR by default
rrbl_colan unquoted column name of baseline RR measurements, RRBL by default
hr_colan unquoted column name of HR measurements, HR by default
hrbl_colan unquoted column name of baseline HR measurements, HRBL by default
qtcf_colan unquoted column name of QTCF measurements, QTCF by default
qtcfbl_colan unquoted column name of baseline QTCF measurements, QTCFBL by default
qtcb_colan unquoted column name of QTCB measurements, QTCB by default
qtcbbl_colan unquoted column name of baseline QTCB measurements, QTCBBL by default

Returns

dataframe with deltaPARAM columns included

Examples

compute_deltas(compute_qtcb_qtcf(data))
compute_deltas.R
# A tibble: 643 × 24
ID TRTG DOSE DOSEU DOSEF NTLD TAFD CONC CONCU RR HR QT RRBL
<dbl> <fct> <dbl> <chr> <fct> <dbl> <chr> <dbl> <chr> <dbl> <dbl> <dbl> <dbl>
1 1001 Plac… 0 mg 0 mg 0.5 0.50 <NA> 968 62.0 381. 851
2 1002 Plac… 0 mg 0 mg 0.5 0.50 <NA> 1097. 54.7 405. 1193.
3 1003 Plac… 0 mg 0 mg 0.5 0.50 <NA> 1026. 58.5 394. 923.
4 1004 Plac… 0 mg 0 mg 0.5 0.50 <NA> 862. 69.6 396. 883.
5 1005 Plac… 0 mg 0 mg 0.5 0.50 <NA> 1060. 56.6 398 1126.
6 1006 Plac… 0 mg 0 mg 0.5 0.50 <NA> 998 60.2 385 999
7 1007 Plac… 0 mg 0 mg 0.5 0.50 <NA> 919. 65.4 399. 909
8 1008 Plac… 0 mg 0 mg 0.5 0.50 <NA> 827. 72.5 371 991
9 1009 Plac… 0 mg 0 mg 0.5 0.50 <NA> 872. 68.9 368. 798.
10 1010 Plac… 0 mg 0 mg 0.5 0.50 <NA> 1070. 56.1 424. 1071
# ℹ 633 more rows
# ℹ 11 more variables: HRBL <dbl>, QTBL <dbl>, QTCB <dbl>, QTCF <dbl>,
# QTCBBL <dbl>, QTCFBL <dbl>, deltaQTCB <dbl>, deltaQTCF <dbl>,
# deltaRR <dbl>, deltaHR <dbl>, deltaQT <dbl>