Learn R Programming

BayesianFROC (version 1.0.0)

Phi_inv: 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

Phi_inv(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(), inv_Phi()

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