Skip to main content

Concentration-QTc: a Compartment-Free Model

A concentration-QTc (C-QTc) model regresses the change in the QTc interval on the drug concentration measured at the same time. Nothing is dosed and nothing is integrated: the model is one equation, and the concentration is a column of the data. In NONMEM this is a $PRED model. In ferx it is a compartment-free [structural_model]: a y = … line with no pk or ode line, reading the concentration as a covariate.

This page fits the prespecified model of the C-QTc white paper (Garnett et al. 2018, Eq. 1), and its placebo-subtracted crossover variant, to the PhysioNet ECGRDVQ study. It computes the regulatory quantity, the predicted ΔΔQTc at the geometric-mean Cmax with a two-sided 90% confidence interval, and compares every number with NONMEM and with nlme. The R walk-through of the same analysis, with the exploratory plots, is the ferx-r Concentration-QTc scenario vignette.

This is a teaching example. The data are single doses in 22 healthy volunteers, so they do not cover steady state or a supratherapeutic exposure, and dofetilide’s large QTc effect is well known.

The data

ECGRDVQ (Johannesen et al. 2014; doi:10.13026/C2HP45, Open Data Commons Attribution License v1.0) is a five-period crossover: each of 22 subjects received dofetilide, quinidine, ranolazine, verapamil and placebo, with triplicate ECGs and a plasma concentration at 15 nominal times over 24 h. The analysis datasets are committed under nonmem_anchor/, built from the PhysioNet CSV by nonmem_anchor/cqtc_prep.R:

  1. QTcF = QT / (RR/1000)^(1/3) per ECG, then the mean of the replicates at each nominal time.
  2. ΔQTcF = QTcF minus the period’s predose baseline (mean of the predose replicates).
  3. For Eq. 1, the drug period and the placebo period of every subject go in one file, with TRT = 1 on drug and CONC = 0 on placebo (cqtc_eq1_dofetilide.csv, cqtc_eq1_verapamil.csv).
  4. For the crossover variant, ΔΔQTcF = drug ΔQTcF minus the same subject’s placebo ΔQTcF at the same nominal time (cqtc_dd_dofetilide.csv).
Column Meaning
DV ΔQTcF (Eq. 1 files) or ΔΔQTcF (crossover file), ms
TIME nominal time after dose, h
TRT 1 drug period, 0 placebo period
CONC dofetilide ng/mL; verapamil in units of 100 ng/mL
BLC period baseline QTcF minus the mean of the period baselines, ms
T2 … T15 1 at the 2nd … 15th nominal time (1 h … 24 h), else 0

Verapamil concentrations are in units of 100 ng/mL so that its slope and slope variance are on the same scale as dofetilide’s, and one set of initial estimates serves both drugs. Six dofetilide records without a concentration are dropped. The geometric-mean Cmax of the per-subject observed maxima is 2.71 ng/mL for dofetilide and 113.6 ng/mL for verapamil.

The white-paper model (Eq. 1)

\[ \Delta\mathrm{QTc}_{ij} = (\theta_0 + \eta_{0,i}) + \theta_1\,\mathrm{TRT}_{ij} + (\theta_2 + \eta_{2,i})\,C_{ij} + \theta_3(\mathrm{TIME}_j) + \theta_4\,(\mathrm{BL}_{ij} - \overline{\mathrm{BL}}) + \varepsilon_{ij} \]

The intercept and the time effect are shared by drug and placebo, so the drug effect at a concentration C is ΔΔQTc(C) = θ₁ + θ₂·C. The time effect is categorical, one theta per nominal time. ferx writes it with the indicator columns: each TMk multiplies Tk, so a record picks up the theta of its own time, and 0.5 h is the reference level absorbed in the intercept. The two random effects carry a covariance (block_omega), as in the white paper’s unstructured IIV. nonmem_anchor/cqtc_eq1_fit.ferx:

[parameters]
  theta TVINT(-10.0, -100.0, 100.0)  # intercept (placebo, 0.5 h, mean baseline)
  theta TRTFX(1.0, -100.0, 100.0)    # treatment-specific intercept
  theta SLOPE(20.0, -1000.0, 1000.0) # concentration slope
  theta BLFX(-0.3, -5.0, 5.0)        # effect of the centred period baseline
  theta TM2(5.0, -100.0, 100.0)
  # ... TM3 to TM14 likewise ...
  theta TM15(5.0, -100.0, 100.0)

  block_omega (ETA_INT, ETA_SLOPE) = [40.0, -1.0, 40.0]

  sigma ADD ~ 60.0 (variance)

[individual_parameters]
  INT = TVINT + ETA_INT
  SL  = SLOPE + ETA_SLOPE

[structural_model]
  TIMEFX = TM2*T2 + TM3*T3 + TM4*T4 + TM5*T5 + TM6*T6 + TM7*T7 + TM8*T8 + TM9*T9
         + TM10*T10 + TM11*T11 + TM12*T12 + TM13*T13 + TM14*T14 + TM15*T15
  y = INT + TRTFX*TRT + SL*CONC + TIMEFX + BLFX*BLC

[error_model]
  DV ~ additive(ADD)

[fit_options]
  method     = foce
  covariance = true

Every theta has a negative lower bound, so ferx estimates it on the natural scale; that matters for reading the covariance matrix below.

ferx nonmem_anchor/cqtc_eq1_fit.ferx --data nonmem_anchor/cqtc_eq1_dofetilide.csv
ferx nonmem_anchor/cqtc_eq1_fit.ferx --data nonmem_anchor/cqtc_eq1_verapamil.csv

Categorical TIME as a level block

A theta level block declares one theta per value of a data column, so the indicator columns are not needed: replace the fourteen TMk thetas and the TIMEFX line with

[parameters]
  theta TIMEFX[TIME, contrast = ref](0.0, -100.0, 100.0)

and keep + TIMEFX in y. contrast = ref holds the first time at 0, as the indicator coding does. On the dofetilide data it gives the same fit (OFV 3700.2346, the same time effects), reported as TIMEFX[TIME=1] … TIMEFX[TIME=24]. The indicator form is the one NONMEM’s $PRED can be written in, so it is the one anchored below.

The crossover variant (ΔΔQTcF)

In a crossover, subtracting each subject’s time-matched placebo ΔQTcF removes the treatment-independent time course before the fit (Garnett 2018, Table 4). The model then needs no TRT and no time terms, and the drug effect at C is θ_int + θ_slope·C. This is the model of the ferx-r vignette. nonmem_anchor/cqtc_dd_fit.ferx:

[parameters]
  theta TVINT(0.1, -50.0, 50.0)
  theta SLOPE(20.0, -50.0, 100.0)
  theta BLFX(0.01, -2.0, 2.0)

  omega ETA_INT ~ 100.0 (variance)
  omega ETA_SLOPE ~ 10.0 (variance)

  sigma ADD ~ 100.0 (variance)

[individual_parameters]
  INT = TVINT + BLFX*BLC + ETA_INT
  SL  = SLOPE + ETA_SLOPE

[structural_model]
  y = INT + SL*CONC

[error_model]
  DV ~ additive(ADD)

[fit_options]
  method     = foce
  covariance = true
ferx nonmem_anchor/cqtc_dd_fit.ferx --data nonmem_anchor/cqtc_dd_dofetilide.csv

The 90% CI at Cmax: delta method

The prediction ΔΔQTc(C) = θ_int + θ_slope·C is linear in the two thetas, so its variance at a fixed C (the geometric-mean Cmax, treated as known) is

\[ \operatorname{var}\widehat{\Delta\Delta\mathrm{QTc}}(C) = \operatorname{var}\hat\theta_\mathrm{int} + C^2\operatorname{var}\hat\theta_\mathrm{slope} + 2C\operatorname{cov}(\hat\theta_\mathrm{int}, \hat\theta_\mathrm{slope}) \]

and the two-sided 90% CI is the estimate ± 1.645·SE. For Eq. 1, θ_int is TRTFX; for the crossover variant it is TVINT. The term that is usually left out is the covariance. The intercept and slope estimates are negatively correlated, so leaving it out makes the interval wider than it is:

Model SE with the covariance term SE without 90% CI half-width
Eq. 1, dofetilide 3.76 ms 4.53 ms 6.18 ms, not 7.46
Eq. 1, verapamil 1.91 ms 2.23 ms 3.14 ms, not 3.66
ΔΔQTcF, dofetilide 3.66 ms 4.44 ms 6.01 ms, not 7.30

The matrix is covariance_matrix in {model}-fit.yaml (rows named by parameter; fit$cov_matrix in R). It is in the optimizer’s space: a theta whose lower bound is negative is there on its natural scale, as every theta of these models is, but a theta with a lower bound ≥ 0 is on the log scale, and its variance would first need the delta method itself (see Packed Parameter Space).

Comparison with NONMEM and nlme

The NONMEM 7.5.1 $PRED control streams (nonmem_anchor/cqtc_eq1_{dofetilide,verapamil}.ctl, cqtc_dd.ctl) code the same equations with the same initial estimates, FOCE and $COV MATRIX=R. nonmem_anchor/cqtc_nlme.R fits the same models with nlme by maximum likelihood. Every model is linear in the random effects with an additive residual, so the FOCE objective is the exact −2 log-likelihood and the three engines minimise the same function. ΔΔQTcF at the geometric-mean Cmax, 90% CI:

Model Engine OFV ΔΔQTcF (90% CI), ms
Eq. 1, dofetilide (2.71 ng/mL) ferx 3700.2346 71.15 (64.97, 77.33)
NONMEM 3700.2346 71.14 (64.96, 77.32)
nlme 3700.2346 71.15 (64.97, 77.33)
Eq. 1, verapamil (113.6 ng/mL) ferx 3090.9101 4.37 (1.24, 7.50)
NONMEM 3090.9109 4.37 (1.23, 7.50)
nlme 3090.9100 4.37 (1.25, 7.49)
ΔΔQTcF, dofetilide (2.71 ng/mL) ferx 2028.7943 73.66 (67.65, 79.67)
NONMEM 2028.7943 73.66 (67.64, 79.67)
nlme 2028.7943 73.66 (67.65, 79.67)

nlme’s OFV is its -2*logLik less N·log(2π), the constant ferx and NONMEM leave out.

Estimates of Eq. 1 on dofetilide (SE in brackets; nlme’s estimates equal ferx’s to the digits shown):

ferx NONMEM
TRTFX, ms −1.692 (1.535) −1.692 (1.535)
SLOPE, ms per ng/mL 26.879 (1.574) 26.877 (1.574)
BLFX −0.2812 (0.0727) −0.2812 (0.0727)
ω²(intercept), ω(int, slope), ω²(slope) 33.80, −1.090, 37.48 33.80, −1.089, 37.48
σ² 85.80 85.79

What the comparison shows:

  • ferx and nlme reach the same optimum (θ, Ω, σ² within 2.5e-5 relative); NONMEM stops slightly short of it, with ROUNDING ERRORS, which is why its verapamil OFV is 8e-4 higher. Evaluated at NONMEM’s own estimates, ferx reproduces NONMEM’s OFV to 4e-8 and its CI to 5e-6 ms.
  • nlme’s interval differs in the third decimal. nlme’s fixed-effect covariance is the expected information (XᵀV⁻¹X)⁻¹; ferx’s, like NONMEM’s MATRIX=R, is the observed one, whose cross terms between the thetas and the variance components are not zero. It shows most in a between-subject covariate: SE(BLFX) is 0.0623 in nlme against 0.0727 in ferx and NONMEM.
  • REML is not ML. nlme’s default is method = "REML", which gives 71.1 (64.8, 77.5) for dofetilide and 4.4 (1.2, 7.6) for verapamil. FOCE in ferx and NONMEM is ML. The open-source cqtkit package reports 4.37 (1.24, 7.50) for verapamil.

tests/cqtc_nonmem_anchor.rs pins all of this: per pull request, the evaluation at NONMEM’s estimates; under slow-tests, the full fits against nlme and NONMEM.

What this example leaves out

  • Hysteresis. Dofetilide’s effect lags its concentration (a counter-clockwise loop). A direct model is an approximation; the next step is a PK model and an effect compartment, which ferx can fit (ferx-r issue #767).
  • The PK → IPRED chain. The slope here uses the observed concentrations.
  • The QT correction. QTcF slightly under-corrects in these subjects, and verapamil raises heart rate by about 9 bpm; a regulatory analysis prespecifies the correction and checks it.

References

  • Garnett C, Bonate PL, Dang Q, et al. Scientific white paper on concentration-QTc modeling. J Pharmacokinet Pharmacodyn 2018;45:383–397. doi:10.1007/s10928-017-9558-5. Erratum: doi:10.1007/s10928-017-9565-6 (not yet checked against Eq. 1 here; ferx-r issue #770).
  • ICH E14/S7B Questions and Answers (R1), 2026.
  • Johannesen L, Vicente J, Gray RA, et al. Improving the assessment of heart toxicity for all new drugs through translational regulatory science. Clin Pharmacol Ther 2014;96:549–558. doi:10.1038/clpt.2014.155.
  • PhysioNet ECGRDVQ, v1.0.0. doi:10.13026/C2HP45.
  • Cellière G, et al. Comparison of statistical methods for concentration-QTc analysis. J Pharmacokinet Pharmacodyn 2025;52:31. doi:10.1007/s10928-025-09975-6.