Learn R Programming

BayesianFROC (version 1.0.0)

inv_Phi: Inverse function of the Cumulative distribution function \(\Phi(x)\) of the Standard Gaussian. where \(x\) is a real number.

Description

The author is confused stats::qnorm() with stats::pnorm() and thus he made this.

Usage

inv_Phi(x)

Arguments

x

A real. To be passed to the function stats::qnorm()

Value

A real number: \(\Phi^{-1}(x)\)

Details

In Stan file, it is inv_Phi() and not 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.

See Also

Phi(), Phi_inv()

Examples

Run this code
# 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