hazard_ratio function

Builds a function used to calculate hazard ratios.