Stata's command
kap is for estimating inter-rater agreement and it can handle the situations where the two variables have the same categories and other situations where they don't, which is the case presented above. Here is an example.input rater1 rater2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 2 3 2 3 2 3 2 end
kap rater1 rater2
Expected
Agreement Agreement Kappa Std. Err. Z Prob>Z
-----------------------------------------------------------------
66.67% 33.33% 0.5000 0.1667 3.00 0.0013
The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.