powered by
Internal function to calculate Pr(-t < Z < t) - kkk/d for Z~N(mu,1). Take the root of this function to find the mu such that P(|Z|>=t_k) = k/d.
qnorm_mu(mu, t, kkk, d)
Pr(-t < Z < t) - kkk/d for Z~N(mu,1).
The mean of the normal random variable.
The threshold (boundaries) we are interested in.
We decided to make you input the fraction in two parts.
qnorm_mu(mu=0, t=1.96, kkk=1, d=5) # Should return 0
Run the code above in your browser using DataLab