Density, distribution, quantile, and random variate generation functions for
the Truncated Normal distribution, with mu and sig equal to the mean and
standard deviation before truncation and truncated to [lwr, upr]. Wrappers
for functions from msm.
dtnorm(x, mu, sig, lwr, upr, log = FALSE)ptnorm(q, mu, sig, lwr, upr, lower.tail = TRUE, log.p = FALSE)
qtnorm(p, mu, sig, lwr, upr, lower.tail = TRUE, log.p = FALSE)
rtnorm(n, mu, sig, lwr = -Inf, upr = Inf)
dtnorm gives the density, ptnorm gives the distribution function,
qtnorm gives the quantile function, and rtnorm generates random
variates.
The length of the result is determined by the length of x for dtnorm.
A vector of quantiles.
A real-valued mean.
A strictly positive standard deviation.
A lower bound.
An upper bound.
A logical value indication whether a probability p should be
given as log(p)
A logical value indicating whether to take lower or upper tail probabilities.
A vector of probabilities.
A number of observations.