Description Usage Arguments Value References Examples
Truncated normal simulation
1 |
n |
length of the vector simulated |
mean |
mean of the normal simulated |
sd |
Standard deviation of the normal simulated |
lower |
lower boundary of the normal simulated |
upper |
upper boundary of the normal simulated |
the simulated value of the normal truncated
Robert, C. P. Simulation of truncated normal variables. Statistics and Computing (1995) 5, 121-125
1 2 | # rtnorm(100, 50, 12, lower = 48)
# rtnorm(100, 50, 12, lower = 48, upper = 56)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.