Do we code the same? (intercoder agreement at segment level)
In brief
Two people coded the same text. Statable counts how often they did the same, at document level and at segment level (with a threshold for the overlap), and shows every disagreement.
Do it yourself
Two persons coded the same interview text with the codes “Planning” and “Time pressure”. The data are invented. The table gives each passage as character positions “from to”; the end does not count, so the length is to minus from. For each pair with the same code check the overlap (shared characters divided by the characters of both passages together) and decide whether the pair agrees at a threshold of 90 percent and at 60 percent. Then count how many of the 12 units (each passage of each person is a unit) agree, calculate the share in percent and assign each remaining unit to one of the three kinds of disagreement. Read the solution only afterwards.
| No. | Person A (code, from to) | Person B (code, from to) | Your overlap |
|---|---|---|---|
| 1 | Planning 0 100 | Planning 0 80 | ? |
| 2 | Time pressure 120 160 | Time pressure 122 160 | ? |
| 3 | Planning 200 260 | Planning 205 265 | ? |
| 4 | Time pressure 300 340 | Planning 300 340 | ? |
| 5 | Planning 400 450 | (nothing) | ? |
| 6 | (nothing) | Time pressure 500 530 | ? |
| 7 | Planning 600 650 | Planning 600 650 | ? |
Solution
- The shared characters are 0 to 80, so 80 characters; together both cover 100. Overlap 80 percent: at 90 percent no, at 60 percent yes.
- The shared characters are 122 to 160, so 38 characters; together both cover 120 to 160, so 40. Overlap 38 divided by 40, that is 95 percent: at 90 and at 60 percent yes.
- The shared characters are 205 to 260, so 55 characters; together both cover 200 to 265, so 65. Overlap 55 divided by 65, just under 85 percent: at 90 percent no, at 60 percent yes.
- The codes differ, so there is no counterpart, whatever the threshold. Kind: same place, different code (both units).
- Only person A coded here. Kind: only one person.
- Only person B coded here. Kind: only one person.
- Same place, same code: overlap 100 percent, yes at any threshold.
At 90 percent pairs 2 and 7 agree, that is 4 of the 12 units, so one third (33 percent). There are five disagreements: pairs 1 and 3 (same code, place different), pair 4 (same place, different code) and the passages 5 and 6 (only one person). At 60 percent pairs 1, 2, 3 and 7 agree, that is 8 of 12 units, two thirds (67 percent), and three disagreements remain. The same passages, two thresholds, two percentages: so always state the threshold.
Trying it in Statable: open the page “Interviews” (#interviews) and load the example project with two coders (invented). In the section “Do we code the same? (intercoder agreement)” choose Coder A and Coder B, calculate at 90 percent and then set 60 percent: the share rises, the codings are the same. Choose “Start agreement (consensus)” and decide three disagreements with a reason each.
What is it?
Two people code the same text separately. Intercoder agreement (agreement between coders) says how often they did the same. Statable calculates on two levels. At document level it only counts, per document and code, whether the person assigned the code at least once (0 or 1); from that come percent, Cohen’s kappa, Brennan-Prediger, Krippendorff’s alpha and Gwet’s AC1. At segment level it also counts whether the passages fit together.
The rule at segment level
- A unit is a segment with a code (a segment with two codes gives two units), of both persons together.
- The overlap of two passages is the shared text divided by the text of both together, counted in characters. Two passages count as the same if they coincide by at least 90 %. The threshold can be chosen (50 to 100 % in steps of 5).
- A unit agrees if the other person assigned the same code in the same document at a place with enough overlap. The result is the share of agreeing units, per code and overall.
- Chance-corrected values follow Brennan and Prediger: (p minus 1/k) divided by (1 minus 1/k), with k as the number of chosen codes. At segment level there is no cell “both coded nothing”; that is why Statable leaves out Cohen’s kappa here.
Example (invented): person A codes 100 characters, person B the same 100 characters except the last 20. 80 characters are shared, together both cover 100: overlap 80 %. At a threshold of 90 % the two do not fit, at 60 % they do. In the example project the share changes in this way from 70.4 % (threshold 90 %) to 85.2 % (threshold 60 %).
The list of disagreements
All units lacking a counterpart are in a list, in three kinds: same place, different code; same code, different place; only one person coded here. For each entry you see the document, the text of the passage and the codes of both persons. It is the basis for the agreement (help “Consensus when coding”).
Difference from MAXQDA
The core rule (default 90 %, intersection over the shared area, same code required) matches the MAXQDA manual (version MX22); the difference: MAXQDA counts segments there, Statable counts segment times code, and for the chance-corrected value Statable uses the number of chosen codes.
When agreement makes sense
Measuring agreement fits methods with a fixed coding guide (for example content-structuring content analysis). With reflexive thematic analysis it makes no sense; there the conversation about interpretation counts (Braun and Clarke; O’Connor and Joffe 2020).
How it works in Statable
- Read in the project with two coders (help “REFI-QDA (.qdpx)”) or load the example project.
- Page “Interviews”, section “Do we code the same? (intercoder agreement)”: choose the pair and codes, set the threshold. Result and list of disagreements appear as tables.
Not true - this is how it is
Sources
O’Connor, C. & Joffe, H. (2020). Intercoder reliability in qualitative research. International Journal of Qualitative Methods, 19 (freely accessible). MAXQDA manual, page “Intercoder Agreement” (MX22), read in summary only. Brennan, R. L. & Prediger, D. J. (1981). Coefficient kappa: some uses, misuses, and alternatives. Educational and Psychological Measurement, 41(3), 687-699.
Take away
- At segment level two passages agree if they carry the same code and coincide by at least 90 % (adjustable).
- The chance-corrected value after Brennan and Prediger takes the number of chosen codes as k; there is no Cohen’s kappa here.
- The list of disagreements shows where the disagreement lies; it is more important than the percentage.
- With reflexive thematic analysis agreement makes no sense.