Returns the probability mass for each value in x. Converts
hazards to a PMF via hazards_to_pmf() then delegates to
ddiscretestep().
Arguments
- x
Numeric vector of values at which to evaluate the PMF.
- boundaries
Numeric vector of length \(K+1\) defining the bin edges. Must be strictly increasing. Defaults to
0:K.- hazards
Numeric vector of length \(K\) (or \(K-1\), in which case a trailing 1 is appended) giving the discrete-time conditional hazard for each bin. Values must be in \([0, 1]\).
Details
Outside fitting it is a deterministic wrapper around ddiscretestep().
It earns its keep as a fitting parameterisation in fitdistdoublecens()
because the random walk on the logit hazard smooths the recovered PMF.
See also
ddiscretestep(), hazards_to_pmf(), pmf_to_hazards(),
fitdistdoublecens()
Other pdiscretehazard:
discretehazard_start(),
pdiscretehazard(),
rdiscretehazard()
