powered by
The author is confused stats::qnorm() with stats::pnorm() and thus he made this.
stats::qnorm()
stats::pnorm()
inv_Phi(x)
A real. To be passed to the function stats::qnorm()
A real number: \(\Phi^{-1}(x)\)
In Stan file, it is inv_Phi() and not inv_phi.
inv_Phi()
inv_phi
Since \(\Phi(x)\) is monotonic, it follows that \(\frac{d}{dx}\Phi^{-1} = (\frac{d}{dx}\Phi)^{-1} >0\), and thus \(\Phi^{-1}(x)\) is also monotonic.
Phi(), Phi_inv()
Phi()
Phi_inv()
# NOT RUN { x <- runif(100) Phi_inv(x) == stats::qnorm(x) inv_Phi(x) == stats::qnorm(x) # }
Run the code above in your browser using DataLab