TruncatedFoldedNormal: The Truncated Folded Normal Distribution

Description Usage Arguments

Description

Density, distribution function, quantile function, and random generation for the truncated folded normal distribution with underlying mean equal to mean, underlying standard deviation equal to sd, lower bound a, and upper bound b.

Usage

1
2
3
dtruncfnorm(x, mean = 0, sd = 1, a = 0, b = Inf, log = FALSE)

rtruncfnorm(n, mean = 0, sd = 1, a = -Inf, b = Inf)

Arguments

x, q

Numeric vector of quantiles.

mean

Numeric vector of means.

sd

Numeric vector of standard deviations.

a

Numeric vector of lower bounds. May be -Inf.

b

Numeric Vector of upper bounds. May be Inf.

log, log.p

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

n

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

p

Numeric vector of probabilities.

lower.tail

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


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