Description Usage Arguments Details References Examples
View source: R/BridgeWrapper.R
Sample from a truncated normal distribution.
1 |
num |
The number of random variates to generate. |
mu |
The mean. |
sig |
The standard deviation. |
left |
The left truncation point. |
right |
The right truncation point. |
This routine follows Robert (1995) to sample a truncated normal.
For mu, sig, left, and right you may send sequences of parameters in addition to scalars.
Christian Robert. Simulation of truncated normal random variables. Statistics and Computing. 1995. Vol 5, p. 121-125.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.