I was trying to visualize some distributions defined in brms, for example the student_t, via ggdist and the distributional package. For some distributions it works fine:
This is because for some distributions (but not all), the code here gives an error if p=0 or p=1 in a quantile function. Is there a particular reason to reject these values rather than returning +- Inf, as for example stats::qt(p=1) does?
I was trying to visualize some distributions defined in brms, for example the student_t, via
ggdist
and thedistributional
package. For some distributions it works fine:but for others such as student_t, skew_normal, there is an error:
Created on 2024-03-29 with reprex v2.1.0
This is because for some distributions (but not all), the code here gives an error if p=0 or p=1 in a quantile function. Is there a particular reason to reject these values rather than returning +- Inf, as for example stats::qt(p=1) does?