halfnorm: Half normal distribution

qhalfnormR Documentation

Half normal distribution

Description

Half normal distribution

Usage

qhalfnorm(p, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)

phalfnorm(x, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE)

dhalfnorm(x, location = 0, scale = 1, log = FALSE)

Arguments

p

numeric probability

location

numeric parameter of halfnormal distribution. Default is 0

scale

numeric parameter of halfnormal distribution. Default is 1

lower.tail

logical; if TRUE (default), probabilities are P[X\leq x], otherwise P[X>x]

log.p

logical; if TRUE, probabilities p are given as log(p). Default is FALSE

x

numeric value

log

logical, should the result be returned as a log. Default is FALSE

Value

returns QDF (fnorm) and DQF (dqnorm) of normal distribution

Examples

p_grd <- make_pgrid()
qhalfnorm(p_grd)

dmi3kno/qpd documentation built on Sept. 29, 2024, 6:39 p.m.