predict_rmax function

predict_rmax