Function for transition hazard rate