truncnorm: Random simulator for the truncated normal distribution
Description
This is a plain random generator for a normal variate
\(\mathcal{N}(\mu,\tau^2)\) truncated
to \((a,b)\), using the inverse cdf qnorm. It may thus
be imprecise for extreme values of the bounds.
Usage
truncnorm(n, mu, tau2, a, b)
Value
a sample of real numbers over \((a,b)\) with size n