Inverts hazards_to_pmf(): given a PMF, computes the discrete-time
conditional hazard at each time point.
$$h_i = pmf_i / (1 - \sum_{j < i} pmf_j)$$
See also
Other pdiscretestep:
ddiscretestep(),
hazards_to_pmf(),
pdiscretestep(),
rdiscretestep()
Examples
pmf_to_hazards(c(0.2, 0.3, 0.5))
#> [1] 0.200 0.375 1.000
