chf.Rd
Access a distribution's cumulative hazard function (chf).
eval_chf(distribution, at)
enframe_chf(..., at, arg_name = ".arg", fn_prefix = "chf", sep = "_")
A distribution, or possibly multiple
distributions in the case of ...
.
Vector of values to evaluate the cdf at. Must be named when using
in enframe_
.
A distribution, or possibly multiple
distributions in the case of ...
.
For enframe_
, name of the column containing
the function arguments.
For enframe_
, name of the function to
appear in the column(s).
When enframe
'ing more than one distribution, the
character that will be separating the fn_name
and the distribution name.
The evaluated cumulative hazard
in vector form (for eval_
) and data frame
or tibble form (for enframe_
).
Other distributional representations:
eval_cdf()
,
eval_density()
,
eval_hazard()
,
eval_odds()
,
eval_pmf()
,
eval_quantile()
,
eval_return()
,
eval_survival()
d <- dst_unif(0, 4)
eval_chf(d, at = 0:4)
#> [1] 0.0000000 0.2876821 0.6931472 1.3862944 Inf
enframe_chf(d, at = 0:4)
#> # A tibble: 5 × 2
#> .arg chf
#> <int> <dbl>
#> 1 0 0
#> 2 1 0.288
#> 3 2 0.693
#> 4 3 1.39
#> 5 4 Inf