Can kappa be negative?
Yes. It is negative when observed agreement is below expected agreement from the margins.
Use the same category order down the rows and across the columns. Each cell counts the pairs assigned to that category combination.
The observed proportion of agreement is the sum of the diagonal divided by all pairs. Use mutually exclusive categories and one record per pair.
Expected agreement sums the products of the two raters’ category shares. Subtract that from observed agreement, then divide by one minus expected agreement.
Yes. It is negative when observed agreement is below expected agreement from the margins.
This version uses two raters and treats all off-diagonal disagreements equally.