Skip to content

fit_qtc_linear_model

Description

Fits QT(c) data to linear mixed effects model with fixed effects of intercept and RR slope, with random effects on intercept and slope.

Usage

fit_qtc_linear_model(
data,
qt_col,
rr_col,
id_col,
method = "REML",
remove_rr_iiv = FALSE
)

Arguments

NameDescription
dataQTc dataset
qt_colunquoted column name of QT(c) data
rr_colunquoted column name of RR data
id_colunquoted column name of ID data
methodmethod for fitting (ML or REML)
remove_rr_iivboolean for removing IIV on slope

Returns

nlme::lme model

Examples

qt_mod <- fit_qtc_linear_model(baseline, QT, RR, ID)
qtcb_mod <- fit_qtc_linear_model(baseline, QTCB, RR, ID)