Re: [R] Generating a binomial random variable correlated with a normalrandom variable

From: Dimitris Rizopoulos <dimitris.rizopoulos_at_med.kuleuven.ac.be>
Date: Mon 04 Apr 2005 - 19:12:51 EST

one idea is to consider that the underlying (for ease normally distributed) latent variables that produce the Bernoulli trials are correlated with your original normal random variable.

I hope it helps.

Best,
Dimitris



Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium

Tel: +32/16/336899
Fax: +32/16/337015
Web: http://www.med.kuleuven.ac.be/biostat/
     http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm


> Hi All:
> I would like to generate a binomial random variable that correlates
> with a
> normal random variables with a specified correlation. Off course,
> the
> correlation coefficient would not be same at each run because of
> randomness.
> I greatly appreciate your input.
> Ashraf
>
> ______________________________________________
> R-help@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
>



R-help@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 Received on Mon Apr 04 19:15:57 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:01 EST