check_y_vars_to_keep function

Check variables in y that will be kept in returning table