The HR is typically calculated using Cox proportional hazards model, a statistical technique that assesses the impact of various factors on the time it takes for a specific event to occur. The model can adjust for multiple variables, providing a more accurate estimate of the treatment effect.