kdkyrngtr2 function

compute max(kD) and max(kY) for total R2-based analysis