Closed avehtari closed 6 years ago
Thanks, I'll look at it.
Here's a link to a Stan code which uses numerically stable way to compute these https://github.com/avehtari/BDA_R_demos/blob/master/demos_rstan/gpareto_functions/gpareto.stan Even if you don't know Stan the code should be easily readable.
And thanks for making the extraDistr package, it's beeen useful.
dgpd and pgpd are not handling xi=0 special case correctly
Also cases with xi close to 0 return non-smooth results
The correct results with xi->0 can be obtained from dexp and pexp