profitParseLikefunc: Check various allowed names for likelihoods
Description
A simple convenience function. Probably not useful to the user, but used by multiple functions so it should not be hidden.
Usage
profitParseLikefunc(funcname)
Arguments
funcname
The allowed generic names for various functions. See Details.
Value
If input is "norm" or "normal" returns "norm"
If input is "chi-sq" or "chi-sq" returns "chisq"
If input is "student-t", "t" or "student" returns "t"
If input is "pois", "poisson", "cash" or "c" returns "pois"
Details
The Normal distribution can be called "norm" or "normal"
The Chi-Squared distribution can be called "chisq" or "chi-sq"
The Student-T distribution can be called "student-t", "t" or "student"
The Poisson distribution can be called "pois", "poisson", "cash" or "c"