Process the distribution name argument into a distribution index
Process the distribution name argument into a distribution index
This function is intended to help with compatibility with the previous versions of the package.
process_dist_name(distname)
Arguments
distname: Can be an integer or a distribution name. Allowed names are "normal", "gamma", "beta", "exponential", "lognormal", "half-Cauchy", "half-normal", "half-student", "uniform" and "truncated normal", or their common abbreviations "norm", "exp", "halfcauchy", "halfnorm", "halft" and "unif".
Returns
an integer both if distname is an integer or a character