rtnorm {MCMCglmm} | R Documentation |
Samples from the Truncated Normal Distribution
rtnorm(n = 1, mean = 0, sd = 1, lower = -Inf, upper = Inf)
n |
integer: number of samples to be drawn |
mean |
vector of means |
sd |
vector of standard deviations |
lower |
left truncation point |
upper |
right truncation point |
vector
Jarrod Hadfield j.hadfield@ed.ac.uk
Robert 1995 Statistics & Computing
hist(rtnorm(100, lower=-1, upper=1))