Skip to contents

Calculate location and scale parameters for a specified distribution so that it matches two specified quantiles

Usage

calc_loc_scale_params(ps, qs, dist)

Arguments

ps

vector of two probability levels at which the distribution's quantiles are distinct

qs

vector of two distinct quantile values corresponding to the probability levels in ps

dist

the probability distribution to use for extrapolation. This distribution should be in a location-scale family, such as "norm"al or "cauchy"

Value

named list with entries "a", the location parameter, and "b", the scale parameter