norm: Derivative quantile functions for normal distribution

fnormR Documentation

Derivative quantile functions for normal distribution

Description

Calculate QDF fnorm and DQF dqnorm for the normal distribution

Usage

fnorm(p, mean = 0, sd = 1, log = FALSE, lower.tail = TRUE, log.p = FALSE)

dqnorm(p, mean = 0, sd = 1, log = FALSE, lower.tail = TRUE, log.p = FALSE)

Arguments

p

numeric probability

mean

numeric parameter of normal distribution. Default is 0

sd

numeric parameter of normal distribution. Default is 1

log

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

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

Value

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

Examples

p_grd <- make_pgrid()
fnorm(p_grd)
dqnorm(p_grd)

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