Normal_lcdf underflows much faster than pnorm(log=TRUE)

Sorry that was misleading. Phi_approx is just a inverse logit scaled to look like probit.

We encourage people to check every aspect of their fits! This stuff’s all way too numerically unstable to trust out of the box for complicated problems without validation. It also helps check the coding part in addition to the statistics.

There’s a lot of room for improvement in our _lcdf and _lccdf functions—they’re mostly just taking the log of the _cdf functions.

We’d love to have someone work on this.

If there are specific algorithms people can recommend for the normal log CDF, we could implement those.