qnorm_mu: qnorm_mu.R

View source: R/qnorm_mu.R

qnorm_muR Documentation

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)

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.

Value

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

Examples

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

ryanrsun/GBJ documentation built on Feb. 6, 2024, 1:21 a.m.