Run this study#
What you are checking: whether a new reagent or calibrator lot changes any patient result by more than your laboratory allows.
Suggested starting plan: 3 concentration groups × 20 independent patient specimens, each measured once on both lots: 60 specimens, 120 results. Choose groups that cover your reporting range and decision points. Base the count on the method's variability. For example, with a paired-difference SD of about 2 units, 20 specimens per group give a 95% interval of about ±0.94 units around the mean difference (NIST mean-interval formula). The calculation minimum is 2 specimens with a completed plan.
- Decide first. Choose New study, pick Reagent lot comparison, name both lots, enter the Required matched pairs (how many patient specimens you plan) and choose Create study. Then decide the allowable difference for each specimen (in the study unit, as a percentage of the previous-lot result, or both; or choose Use a CLIA / CAP limit) and the concentration groups. Enter them on Set up (see Study setup).
- Measure both lots. Run the same patient specimens on both lots within their stability window, with calibration and QC in control. Enter repeats under the same specimen ID. They are averaged.
- Enter results: specimen ID, lot, result and level. Lot and level names must match the study exactly. IDs starting with
QCare control material and are summarized separately. On Data, choose Import a file and choose your file (start from Blank template (CSV) or lots.csv). Answer any question the dialog asks, then choose Import into this study. - Calculate and review. Choose Calculate results. Results opens. Check each specimen's outcome under New lot … vs previous lot …, then Planned vs completed specimens. Check zero previous-lot results under combined limits. Fix any unmatched specimen or uncovered group. On Report, choose Download PDF.
What you get: the lot passes when every specimen is within its allowable difference, at least 2 specimens are included and the plan is complete. Mean differences and confidence intervals are shown for context.
Purpose#
One study compares one pair of lots. Differences are new lot minus previous lot. A negative difference means the new lot reads lower.
When to use it#
Use it when a new lot arrives for the same analyzer. For two methods or analyzers, use Method comparison or Instrument comparison. For imprecision alone, use Repeatability or Multi-day precision.
Study setup#
- Choose New study. Enter Analyte and Unit, select Reagent lot comparison under Comparison and bias, and fill in Previous lot name, New lot name and Required matched pairs (how many patient specimens you plan to measure on both lots). Choose Create study, or Create and import data if you already have results.
- On Set up, check Previous lot and New lot under Study details. Under Lot plan, check Required matched pairs. Lot plan analyte fills in from the study. Under Planned concentration groups, choose Add concentration group for each level. Enter its Level as it appears in your data, its Required pairs and, optionally, Range low and Range high in the study unit. The range is checked against previous-lot results.
- Under Acceptance limits, choose Enter your own limit and enter the allowance for each specimen. See Statistics and exact acceptance for how it is applied.
To reuse the plan in another study with the same analyte and unit, choose Save as a lot plan under Lot plans, name it and choose Save lot plan. In the other study, pick it under Saved lot plan and choose Load lot plan. A saved lot plan carries no acceptance limits. Set them in each study, or copy them with Reuse limits from a saved set or another study.
Entering data#
On Data, choose Import a file, or Add row and type or paste into the grid. Blank template (CSV) downloads the columns this study needs.
| Column | Required? | What to enter |
|---|---|---|
| Specimen ID | Yes | Coded ID, the same on both lots. IDs starting with QC are control material |
| Lot | Yes | Exactly the Previous lot or New lot name |
| Result | Yes | A number in the study unit |
| Level | Yes | The concentration group named in the plan, one per specimen |
| Day, Run, Replicate | No | For your records |
| Excluded, Exclusion reason | No | In an imported file: yes/no, true/false or 1/0, with a reason |
Fix these before calculating:
- a marked row, such as a lot name that matches neither lot
- no allowable difference under Acceptance limits
- a plan with no required pairs or no concentration group
- a plan for another analyte or unit
- a specimen in more than one level
- no patient specimens, only
QCrows
Statistics and exact acceptance#
For each specimen, X is its previous-lot result and Y its new-lot result, after averaging replicates. With an absolute allowance A in the study unit and a percentage allowance P:
- Difference = Y − X.
- A percentage allowance is a percentage of X. It needs a positive X and a scale with a meaningful zero.
- Allowance = A, or X × P / 100, or with both limits, as chosen under With both limits: max(A, X × P / 100) for Pass when within either (the larger allowance), min(A, X × P / 100) for Pass only when within both.
- The specimen meets the limit when |Y − X| ≤ allowance.
- Error index = difference ÷ allowance. Values from −1 to +1 meet a symmetric limit.
Every specimen must meet its limit, whatever the mean difference.
| Previous lot | New lot | Limit | Outcome |
|---|---|---|---|
| 100 | 89.9 | 10% | Fail: 10.1 exceeds 10 |
| 100 | 90 | 10% | Pass: exactly on the limit |
| 100 | 110.1 | 10% | Fail: 10.1 exceeds 10 |
| 20 | 22 | Greater of 2 units or 10% | Pass: allowance is 2 |
| 100 | 109 | Greater of 2 units or 10% | Pass: allowance is 10 |
Differences are compared with the limit at full precision. A difference exactly on the limit passes.
The percentage summaries in the results file (mean, SD and mean interval of the percentage differences) use a different denominator: 100 × (new − previous) / mean of the two lot results. For 20 → 22 and 100 → 98 they average 3.75%, while the same differences as a percentage of the previous lot average 4%. Only the per-specimen limit above decides the lot.
| Situation | Decision |
|---|---|
| Every included specimen meets its limit, at least 2 specimens, plan complete | Criteria met |
| Any specimen exceeds its limit | Criteria not met |
| A specimen has a result on only one lot | That specimen can't be evaluated. The limit is Undecided unless another specimen already fails |
| Fewer than 2 specimens | Undecided |
| Fewer specimens than planned, a group not covered, or specimens outside the plan | Plan incomplete. A passing result becomes Undecided |
| Percentage limit with a previous result of 0 or below, or on an interval scale | That specimen can't be evaluated. A greater-of rule still uses its absolute part when that part is larger |
Sources and the numerical checks behind these calculations: Methods and sources.
Worked example#
lots.csv has six synthetic glucose specimens in two groups and one QC material, each measured on LOT-A and LOT-B, 14 rows in all. The example project's study Glucose · reagent lot comparison uses it.
| Setting | Value |
|---|---|
| Previous lot / New lot | LOT-A / LOT-B |
| Required matched pairs | 6 |
| Planned concentration groups | Group 1 has 3 pairs, 90 to 110 mg/dL. Group 2 has 3 pairs, 140 to 160 mg/dL |
| Acceptance limit | Specimen differences: each specimen within 2 mg/dL or 2%, whichever is greater |
| Specimen | Previous lot (mg/dL) | New lot (mg/dL) | Difference (mg/dL) | Allowed difference (mg/dL) | Error index | Outcome |
|---|---|---|---|---|---|---|
| S01 | 98.40 | 99.10 | +0.70 | ±2 | 0.350 | Met |
| S02 | 101.20 | 100.70 | −0.50 | ±2.024 | −0.247 | Met |
| S03 | 99.80 | 100.30 | +0.50 | ±2 | 0.250 | Met |
| S04 | 148.60 | 149.90 | +1.30 | ±2.972 | 0.437 | Met |
| S05 | 152.10 | 151.40 | −0.70 | ±3.042 | −0.230 | Met |
| S06 | 149.30 | 150.20 | +0.90 | ±2.986 | 0.301 | Met |
Every specimen is Met, and both groups have 3 of 3 pairs inside their planned range. The study status is Criteria met. The mean difference is +0.37 mg/dL, with a 95% CI of −0.47 to 1.20.
With a ±1 mg/dL limit, S04 (+1.30 mg/dL) fails and the study status is Criteria not met, although the mean difference is well inside ±1. If S06's new-lot result is excluded instead, S06 can't be evaluated, the plan has 5 of 6 pairs, and the study is Undecided.
Reading the results#
New lot … vs previous lot … lists every included specimen, unmatched ones too, under Specimen decisions. If something else stops the lot passing, such as an incomplete plan, that reason comes first.
Planned vs completed specimens shows whether each planned group is covered, with its counts and ranges.
Supporting statistics and QC holds the mean differences by level, imprecision and QC summaries.
The report adds an error-index plot of each specimen's difference ÷ allowance against its previous-lot result. Points inside the shaded band from −1 to +1 are within the limit.
Common corrections#
- Unmatched specimen: check the specimen ID and lot spelling. Enter the missing result or exclude the row with a reason.
- Uncovered group: check the level name, then add specimens until the group has its planned count within its range.
- Failed specimen: review preparation, stability, instrument and lot records. Correct a mistyped result in its row. Excluding a result asks for a reason.