calculate RMAC or FMAC agreement coefficients