Description Usage Arguments Value Examples
imp contains a general function for rejection sampling of standardized truncated univariate normal distribution in (a,b).
1 | imp(a, b)
|
a |
lower bound for truncation. |
b |
upper bound for truncation (must be |
imp returns a list
x: sampled value; and
acc: total number of draw used.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.