powered by
Sample from a truncated normal distribution
rtruncatednorm(n = NULL, mean = 0, sd = 1, ll = -Inf, ul = Inf)
Number of observations
Mean
Standard deviation
Lower bound
Upper bound
There is a discussion and code on https://stackoverflow.com/a/14034577, and there is also the truncnorm package.