Skip to content

Commit

Permalink
Update student_t_qf.stanfunctions (#86)
Browse files Browse the repository at this point in the history
Updated erroneous log input
  • Loading branch information
spinkney committed Aug 3, 2023
1 parent 8241956 commit 768fa32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/quantile_function/student_t_qf.stanfunctions
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ real student_t_log_qf(real log_p, real ndf) {
y = exp(2 * x);

if ((ndf < 2.1 && P > 0.5) || y > 0.05 + a) {
x = inv_Phi(log_P2);
x = inv_Phi(0.5 * P);
y = square(x);

if (ndf < 5) {
Expand Down Expand Up @@ -333,4 +333,4 @@ vector student_t_log_qf(vector u, real nu) {

return x;
}
/** @} */
/** @} */

0 comments on commit 768fa32

Please sign in to comment.