Distortion function and rank weights
distortion_g.Rddistortion_g() evaluates g at survival probabilities;
distortion_weights() gives the weight of each of n equally likely
values sorted ascending.
Arguments
- d
A distortion.
- s
Survival probabilities in
[0, 1].- n
Number of values.
Examples
distortion_weights(distortion("tvar", 0.5), 4)
#> [1] 0.0 0.0 0.5 0.5