Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › QT Interval Measurements and Concentration-QTc Data Structure

Concentration-QTc and Safety Models · Tutorial 367 of 598

QT Interval Measurements and Concentration-QTc Data Structure

You will learn to build a traceable, time-aware dataset that links replicate QT and RR measurements to the appropriate plasma concentration without confusing planned times with observed times.

Advanced 10 min read

What You'll Learn

  • Define QT and RR intervals and distinguish their recorded values.
  • Summarize replicate ECG measurements while retaining the underlying records.
  • Distinguish nominal sampling times from actual ECG and blood-draw times.
  • Match ECG measurements and plasma concentrations using subject, visit, and timing information.
  • Identify data checks and common pairing errors that can distort exposure-response data.

Why the Data Structure Matters

Concentration-QTc analysis begins before a model is fitted: it begins with measurements whose meanings and timing are clear. An ECG provides an electrical recording from which intervals such as QT and RR are measured. A plasma sample provides a concentration associated with its own collection time. If the records are linked using only a planned visit label, or if replicate ECGs are collapsed without preserving their source values, the resulting exposure-response dataset can misrepresent what was measured and when.

This tutorial focuses on measurement and data organization. QT is the interval from the beginning of the QRS complex to the end of the T wave, measured in milliseconds. It reflects the time spanning ventricular depolarization and repolarization. RR is the interval between successive R-wave peaks, also usually measured in milliseconds; it describes the length of a cardiac cycle. The two are related physiologically, but they are distinct recorded quantities. QT correction and baseline-adjusted QTc are separate topics.

Definition: A replicate ECG is one of multiple ECG recordings collected in a planned measurement set, often within a short period at a study visit. A nominal time is the planned time relative to a reference such as dose administration. An actual time is the recorded time at which the ECG or plasma sample was obtained. A concentration-QTc observation ultimately links an ECG-derived endpoint to a concentration for the same participant and relevant treatment occasion, with the timing relationship documented.

From ECG Traces to Replicate Summaries

A measurement record should identify the participant, study, treatment or period, visit, planned time, actual ECG time, replicate number, QT value, RR value, measurement units, and relevant quality or reader information. The original replicate-level observations should be retained even when a summary is created. They allow review of outlying values, missing replicates, and data processing decisions.

For a set of \(m\) valid replicate QT measurements collected in a defined measurement window, the arithmetic mean is

$$ \overline{QT}=\frac{1}{m}\sum_{j=1}^{m}QT_j $$

The corresponding mean RR is calculated from the RR values in that same replicate set:

$$ \overline{RR}=\frac{1}{m}\sum_{j=1}^{m}RR_j $$

Keeping QT and RR paired by replicate is important. If replicate 1 has a QT and RR recorded from the same ECG, those values form a measurement pair. Averaging each column separately produces a useful summary of the set, but it does not mean that every individual QT value was observed at the average RR. Do not create a new QT-RR pair by combining measurements from different people, visits, or unrelated times.

A mean is not automatically appropriate for every dataset. First check the protocol and data conventions: how many recordings constitute a set, what makes a replicate invalid, and how missing or unreadable traces are handled. Report the number of contributing replicates alongside a summary. If only two of three scheduled recordings are usable, the mean of those two is not a three-replicate mean. Do not silently substitute a different summary rule or exclude a value merely because it looks inconvenient.

Worked Example: Summarizing Three Replicate ECGs

In a hypothetical study, three valid ECGs are recorded for one participant in a short planned window. Their QT values are 402, 408, and 405 ms; their paired RR values are 820, 810, and 815 ms. Calculate the replicate means.

For QT, \(m=3\), so

$$ \overline{QT}=\frac{402+408+405}{3} =\frac{1215}{3}=405\text{ ms}. $$

For RR,

$$ \overline{RR}=\frac{820+810+815}{3} =\frac{2445}{3}=815\text{ ms}. $$

The summary record is therefore \(\overline{QT}=405\) ms and \(\overline{RR}=815\) ms, based on three valid ECGs. The paired replicate values remain available: (402 ms, 820 ms), (408 ms, 810 ms), and (405 ms, 815 ms). These calculations summarize the recorded intervals; they do not apply a heart-rate correction.

Why Replicates Can Help—and What They Cannot Fix

Replicate measurements can reduce the effect of random measurement error when the errors are independent, centered around zero, and have the same variance. To see why, let a replicate measurement equal a common underlying value plus an error: \(Y_j=\theta+\epsilon_j\), where \(E(\epsilon_j)=0\) and \(\operatorname{Var}(\epsilon_j)=\sigma^2\). If the replicate errors are independent, then

$$ \operatorname{Var}(\overline{Y}) =\operatorname{Var}\left(\frac{1}{m}\sum_{j=1}^{m}Y_j\right) =\frac{1}{m^2}\sum_{j=1}^{m}\operatorname{Var}(\epsilon_j) =\frac{\sigma^2}{m}. $$

Thus, under those assumptions, averaging \(m\) replicates reduces the error variance compared with relying on one replicate. Independence can be unrealistic when recordings are close together or share reader and instrument effects. If each error has variance \(\sigma^2\) and every pair has correlation \(\rho\), then

$$ \operatorname{Var}(\overline{Y}) =\frac{\sigma^2}{m}\left[1+(m-1)\rho\right]. $$

When \(\rho>0\), the variance reduction is smaller than the independent-error calculation suggests. Averaging also does not remove systematic bias, a shared technical problem, or genuine changes over the measurement window. Replicates are most interpretable when they are collected under a protocol-defined timing rule and the individual results are inspected for quality.

Nominal Time, Actual Time, and Concentration Matching

A nominal time is a design label, such as “2 hours after dose.” It is useful for scheduling and describing the study design, but it is not proof that a measurement occurred exactly two hours after dose. An ECG may be delayed, and a blood draw may occur earlier or later than planned. Record the actual ECG time and actual plasma collection time, with a consistent reference such as elapsed time from dose. Store clock timestamps and time-zone or date information when needed to resolve the sequence unambiguously.

A concentration is associated with the plasma sample’s collection time. An ECG is associated with the time its recording was obtained. Linking them for exposure-response analysis requires more than a shared nominal visit label. At minimum, verify that the participant, treatment or period, dose occasion, and intended assessment window agree. Then assess and record the difference between actual collection times. A concentration drawn at a different time is not literally a contemporaneous measurement of concentration at the ECG time.

Data principle: Preserve the ECG time and plasma-sample time as separate fields. If a protocol specifies a time-matching rule, apply and document it consistently. If times do not meet that rule, flag the pair for review rather than silently treating the nominal time as the actual time. Any concentration estimated for an ECG time, rather than directly measured then, must be identified as estimated and handled under an explicit analysis method.

Worked Example: Planned Time Versus Actual Time

In a hypothetical participant record, the planned post-dose assessment is 2 hours. The triplicate ECG set begins at 2 hours 06 minutes after dose, and its three QT values are 396, 400, and 398 ms. A plasma sample is collected at 2 hours 11 minutes, with measured concentration 1.80 mg/L. Calculate the ECG summary and describe the timing relationship.

The mean QT is

$$ \overline{QT}=\frac{396+400+398}{3} =\frac{1194}{3}=398\text{ ms}. $$

The planned label is 2 hours, but the actual ECG time is 2 hours 06 minutes and the actual blood-draw time is 2 hours 11 minutes. The sample was collected 5 minutes after the ECG set began. The concentration of 1.80 mg/L is a measured concentration at the blood-draw time; it should not be described as an exact-time measurement at 2 hours 06 minutes. Whether this pair is acceptable depends on the protocol’s prespecified timing rule. Record the 5-minute offset so the decision is traceable.

A Practical Record Layout and Matching Workflow

A useful structure distinguishes the ECG replicate table from the concentration table, then creates an analysis table with an explicit link between the relevant ECG summary and concentration record. An ECG table can have one row per replicate, including participant ID, treatment or period, nominal time, actual ECG time, replicate number, QT, RR, units, and validity status. A concentration table can have one row per plasma sample, including participant ID, treatment or period, nominal time, actual draw time, concentration, units, and sample status. A summary or analysis table should preserve identifiers for the contributing ECG replicates and the linked plasma sample.

The key is to avoid making the data structure hide the timing information. If one plasma sample is associated by protocol with a triplicate ECG set, it may be linked to that set’s summary while still retaining the three ECG rows and the plasma sample’s exact collection time. The data should make clear that the concentration is a single sample associated with a set, not three independently collected concentrations. Similarly, repeated ECG sets from the same participant are repeated observations, not separate participants.

1
Validate identities and occasions.
Confirm participant, treatment or period, dose occasion, and visit identifiers across ECG and concentration records.
2
Check timestamps and units.
Verify actual ECG and plasma collection times against the same time reference, and confirm interval and concentration units.
3
Review replicate ECGs.
Check validity and completeness, then calculate a protocol-consistent summary while retaining all replicate-level values.
4
Apply the stated matching rule.
Link only records that satisfy the intended identity and timing criteria; retain the time offset and flag unmatched or questionable records.
5
Inspect the resulting dataset.
Look for duplicate links, missing values, unexpected time ordering, and implausible or inconsistent units before exposure-response analysis.

Worked Example: Finding a Mismatched Record

A hypothetical visit has one triplicate ECG set for participant P17 in treatment period A. The ECG records have actual times 4.02, 4.04, and 4.06 hours after dose. Two plasma records are available: sample C1 for P17, period A, collected at 4.05 hours with concentration 2.10 mg/L; and sample C2 for P17, period B, collected at 4.03 hours with concentration 2.40 mg/L. The protocol specifies that a concentration must come from the same treatment period and dose occasion. Which concentration record is eligible for consideration?

C2 is not eligible even though its collection time is closer to the ECG times: it belongs to period B, whereas the ECG set belongs to period A. C1 has the matching participant and period, and its collection time is 4.05 hours, within the ECG set’s 4.02-to-4.06-hour span. It is therefore the only record eligible for consideration under the stated identity rule. The actual timing and any additional protocol tolerance still need to be checked; the data given do not establish an unstated allowable time window. If the protocol’s timing rule is met, link C1 to the ECG set summary and retain the underlying times. Do not choose a record based on closeness in time while ignoring treatment period.

Diagnostics, Alternatives, and Common Pitfalls

Before using a concentration-QTc dataset, check that QT and RR are expressed in consistent units, timestamps are interpretable, replicate counts agree with the protocol, and summary values can be reproduced from source records. Investigate missing or duplicate replicate numbers, impossible or reversed time sequences, multiple candidate plasma samples, and changes in units or identifiers. Review ECG quality flags and the source trace when a value is unusual; a numerical outlier may reflect either a genuine measurement or a recording, reading, or data-entry problem. Do not impose an arbitrary exclusion threshold without a scientific and protocol-based reason.

Two common data strategies are to analyze replicate-level ECG records or to summarize replicates at a planned assessment occasion. Retaining replicate-level records preserves detail and supports review, but it requires later analysis to account appropriately for repeated records. Summarizing produces a compact occasion-level dataset and is straightforward when the protocol defines a replicate summary, but it can conceal within-set variation or missingness. Whichever strategy is used, preserve enough source information to reconstruct the other view.

For concentrations, a directly measured sample close in time to the ECG differs from a concentration estimated at the ECG time. The first is an observation at its documented collection time; the second depends on an estimation method and its assumptions. A nominal-time label is neither of these. This tutorial’s matching rules ensure that the distinction remains visible; they do not prescribe a method for estimating an unobserved concentration.

  • Mistake: treating nominal time as actual time. “Both were scheduled at 2 hours” does not show that the ECG and sample were collected together. Use actual timestamps and the protocol’s matching rule.
  • Mistake: selecting the nearest concentration regardless of context. A nearby sample from another treatment period or dose occasion is not a valid match. Check participant and occasion identifiers first.
  • Mistake: averaging without preserving replicate records. A summary alone prevents review of replicate quality and calculation. Keep source values, validity status, and the number of contributing ECGs.
  • Mistake: treating each replicate as an independent participant-level observation. Replicates belong to a measurement set from the same participant and occasion. Their relationship must remain identifiable in the data.
Key takeaway: A sound concentration-QTc dataset preserves what each interval measures, how replicate summaries were formed, and when each ECG and plasma sample was actually obtained. A defensible match is documented, occasion-consistent, and based on a stated timing rule—not inferred from a shared nominal label alone.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. What do QT and RR measure, and what units are commonly used for each?
  2. Three valid QT replicates are 410, 406, and 408 ms. Calculate their mean.
  3. An ECG is collected at 1 hour 58 minutes after dose and a plasma sample at 2 hours 03 minutes. What is the time offset, and why should the sample not automatically be described as collected at the ECG time?
  4. Why should source replicate values be retained after a mean ECG summary is calculated?
  5. An ECG set is for treatment period B. A plasma sample from the same participant is closer in time but is labeled period A. Is it a match under a same-period rule? Explain.

Solutions. (1) QT runs from the beginning of the QRS complex to the end of the T wave; RR is the interval between successive R-wave peaks. Both are commonly recorded in milliseconds. (2) \((410+406+408)/3=1224/3=408\) ms. (3) The sample was collected 5 minutes after the ECG. It represents concentration at its own collection time; whether it can be linked depends on a stated timing rule. (4) The original values allow review of quality, missing replicates, and the reproducibility of the summary. (5) No. The period mismatch violates the stated matching rule, regardless of time proximity.

Clinical Biostats