Function factory for distribution functions
cdf_fun(para, family)A distribution function that has a single argument. This is the vector of values in which the distribution function is evaluated.
Parameter vector.
Distributional family, one of the following:
"normal": normal distribution where para[1] is the mean and para[2] is
the standard deviation.
"logistic": logistic distribution as parameterized in stats::plogis() where
para[1] and para[2] correspond to location and scale, respectively.
"t": t distribution as parameterized in stats::pt() where para[1] and
para[2] correspond to ncp and df, respectively.