Closed ndunnewind closed 2 years ago
The pgengamma(), pgompertz() and pllogis() functions return -Inf for q<0 and lower.tail = FALSE. Shouldn't this always return 1, consistent with the other flexsurv distributions and e.g. stats::plnorm()?
pgengamma()
pgompertz()
pllogis()
-Inf
q<0
lower.tail = FALSE
1
stats::plnorm()
Thanks for spotting and reporting, this bug was also in pgenf(). Fixed in https://github.com/chjackson/flexsurv-dev/commit/9dbfef739e37b4b8a04ff36000843a727f173d2d .
pgenf()
The
pgengamma()
,pgompertz()
andpllogis()
functions return-Inf
forq<0
andlower.tail = FALSE
. Shouldn't this always return1
, consistent with the other flexsurv distributions and e.g.stats::plnorm()
?