# set seed to control for stochasticity
set.seed(1)
# extract parameters of a lognormal distribution from the 75 percentiles
extract_param(
type = "percentiles",
values = c(6, 13),
distribution = "lnorm",
percentiles = c(0.125, 0.875)
)
# extract parameters of a gamma distribution from median and range
extract_param(
type = "range",
values = c(10, 3, 18),
distribution = "gamma",
samples = 20
)
Run the code above in your browser using DataLab