For a single observation, map a predicted hazard of failure (occurrence in a particular bin, under a given partitioning of the support) to a density.

map_hazard_to_density(hazard_pred_single_obs)

Arguments

hazard_pred_single_obs

A numeric vector of the predicted hazard of failure in a given bin (under a given partitioning of the support) for a single observational unit based on a long format data structure (as produced by format_long_hazards). This is simply the probability that the observed value falls in a corresponding bin, given that it has not yet failed (fallen in a previous bin), as given in Díaz I, van der Laan MJ (2011). “Super learner based conditional density estimation with application to marginal structural models.” The International Journal of Biostatistics, 7(1), 1--20. .