rtnorm

0th

Percentile

Random Generation from a Truncated Normal Distribution

Samples from the Truncated Normal Distribution

Keywords
distribution
Usage
rtnorm(n = 1, mean = 0, sd = 1, lower = -Inf, upper = Inf)
Arguments
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

Value

vector

References

Robert, C.P. (1995) Statistics & Computing 5 121-125

See Also

rtnorm

Aliases
  • rtnorm
Examples
# NOT RUN {
hist(rtnorm(100, lower=-1, upper=1))
# }
Documentation reproduced from package MCMCglmm, version 2.29, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.