Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rtnorm

Vectorized random number generation from the univariate truncated normal distribution


Description

If n is 1, the function returns a vector rather than a matrix. If mu or sd are not specified they assume the default values of 0 and 1, respectively.

Usage

rtnorm(n, mu, sd, lb, ub, method = c("fast", "invtransfo"))

See Also


TruncatedNormal

Truncated Multivariate Normal and Student Distributions

v2.2
GPL-3
Authors
Zdravko Botev [aut] (<https://orcid.org/0000-0001-9054-3452>), Leo Belzile [aut, cre] (<https://orcid.org/0000-0002-9135-014X>)
Initial release
2020-05-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.