Description Usage Arguments Value Author(s) Examples
Sample a random sign according to a specified probability.
1 | rsign(n, p = 0.5)
|
n |
number of samples to draw |
p |
probability that a positive sign is drawn. |
A numeric vector with elements 1
and -1
.
Dominik Mueller
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.