rate_compare function

Unstratified and stratified Miettinen and Nurminen test