Description Usage Arguments Value See Also Examples
View source: R/Phi__and__Phi_inv.R
Φ(x):= \int_{-∞}^x \frac{1}{√{2π}} e^{\frac{-x^2}{2}}
1 | Phi(x)
|
x |
A real. To be passed to
the function |
Φ(x) := \int _{-∞}^x Gaussian(z|0,1)dz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #========================================================================================
# 1) validation of this function
#========================================================================================
#'
x<-0.2
Phi(x)==stats::pnorm(x)
#========================================================================================
# 1) Build the data
#========================================================================================
#'
a <- 0.1;
NX <- 222;
x <- runif(100,-11,11)
y <- Phi_inv(exp(a/NX) *Phi(x))-x
plot(x,y)
a <- 0.1;
NX <- 222;
x <- runif(100,0,11)
y <- Phi_inv(exp(a/NX) *Phi(x))-x
plot(x,y)
a <- 0.1;
NX <- 222;
x <- runif(100,2,4)
y <- Phi_inv(exp(a/NX) *Phi(x))-x
plot(x,y)
a <- 0.01;
NX <- 222;
x <- runif(100,2,4);
y <- Phi_inv(exp(a/NX) *Phi(x))-x
plot(x,y)
a <- 0.01;
NX <- 222;
x <- runif(100,3.5,4);
y <- Phi_inv(exp(a/NX) *Phi(x))-x
plot(x,y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.