[R] Histogram for mixed random variables

Paul Smith phhs80 at gmail.com
Thu May 5 13:43:22 CEST 2005


Dear All

I would like to get the histogram for the following model with
discrete and continuous random variables:

* with probability 1/3, a random number is drawn from the continuous
uniform distribution (min=0, max=1);
* with probability 2/3, a random number is drawn from a different
continuous uniform distribution (min=-1/2, max=1/2).

Any help would be most welcome.

Thanks in advance,

Paul




More information about the R-help mailing list