Skip to content

preprocess

Description

Pre-processes data Computes QTcB, QTcF, deltaQTcF, deltaQTcB, deltaHR, deltaQTcB Baseline Mean, deltaQTcF Baseline Mean, deltaHR Baseline Mean

Usage

preprocess(
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,
id_col = ID,
deduplicate = TRUE
)

Arguments

NameDescription
dataData frame containing QTc data
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
id_colan unquoted column name of ID data
deduplicateboolean, whether baseline values are duplicated over rows. If true duplicates will be removed from average

Returns

dataframe with deltas computed from BL

Examples

preprocess(data)
preprocess.R
# A tibble: 643 × 30
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
# ℹ 17 more variables: HRBL <dbl>, QTBL <dbl>, QTCB <dbl>, QTCF <dbl>,
# QTCBBL <dbl>, QTCFBL <dbl>, HRBLM <dbl>, deltaHRBL <dbl>, QTCBBLM <dbl>,
# deltaQTCBBL <dbl>, QTCFBLM <dbl>, deltaQTCFBL <dbl>, deltaQTCB <dbl>,
# deltaQTCF <dbl>, deltaRR <dbl>, deltaHR <dbl>, deltaQT <dbl>