FoldedNormal: The Folded Normal Distribution

Description Usage Arguments

Description

Density, distribution function, quantile function, random generation, mean function, variance function, and standard deviation function for the folded normal distribution with underlying mean equal to mean and underlying standard deviation equal to sd.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
dfnorm(x, mean = 0, sd = 1, log = FALSE)

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

rfnorm(n, mean = 0, sd = 1)

efnorm(mean = 0, sd = 1)

vfnorm(mean = 0, sd = 1)

sdfnorm(mean = 0, sd = 1)

Arguments

x, q

Numeric vector of quantiles.

mean

Numeric vector of means.

sd

Numeric vector of standard deviations.

log, log.p

Logical; If TRUE, probabilities p are given as log(p).

lower.tail

Logical; If TRUE, probabilities are P(X ≤q x), otherwise P(X ≤q x).

n

Number of observations. If length(n) > 1, the length of the vector is used.

p

Numeric vector of probabilities.


JonasMoss/straussR documentation built on May 17, 2019, 7:02 p.m.