Description Usage Arguments Value
View source: R/simu.randomvariable.R
Simulation of (discrete) random variables from a vector of probability (the nonparametrically estimated values of the density renormalised to sum at 1) and a vectors of real values (the grid of estimation)
| 1 | discr(x, p)
 | 
| x | n real numbers | 
| p | vector of probability, length n | 
y a simulated value from the discrete distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.