Learn R Programming

GBJ (version 0.5.4)

qnorm_mu: qnorm_mu.R

Description

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.

Usage

qnorm_mu(mu, t, kkk, d)

Value

Pr(-t < Z < t) - kkk/d for Z~N(mu,1).

Arguments

mu

The mean of the normal random variable.

t

The threshold (boundaries) we are interested in.

kkk

We decided to make you input the fraction in two parts.

d

We decided to make you input the fraction in two parts.

Examples

Run this code
qnorm_mu(mu=0, t=1.96, kkk=1, d=5)		# Should return 0

Run the code above in your browser using DataLab