[R] Generating a binomial random variable correlated with a normalrandom variable
Dimitris Rizopoulos
dimitris.rizopoulos at med.kuleuven.ac.be
Mon Apr 4 11:12:51 CEST 2005
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
----- Original Message -----
From: "Ashraf Chaudhary" <mchaudha at jhsph.edu>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, April 04, 2005 12:41 AM
Subject: [R] Generating a binomial random variable correlated with a
normalrandom variable
> 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 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