| .mle_lpearson3 | R Documentation |
Strategy: fit Pearson III directly on log(x) and adjust the
log-likelihood for the Jacobian: loglik_LP3 = loglik_P3(log x) - [U+03A3]log(x).
.mle_lpearson3(x, entry)
Root cause of past failures: the MOM skewness estimate of log(x) can be
near-zero for some random seeds, producing shape = 4/gam^2 -> Inf. The Gamma
density at data points is then effectively 0 everywhere, optim gets a
flat 1e300 objective from the first step, cannot compute a gradient, and
errors out. L-moments (via lmomco::parpe3) are robust to this.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.