agreement function

Calculate van der Eijk's measure of agreement A