[R] Histogram for mixed random variables

Liaw, Andy andy_liaw at merck.com
Thu May 5 13:50:04 CEST 2005


See http://finzi.psych.upenn.edu/R/Rhelp02a/archive/48428.html

Andy

> From: Paul Smith
> 
> 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 
>




More information about the R-help mailing list