[R] Random Normal Variable Correlated to an Existing Binomial Variable

Shane Phillips SPhillips at Lexington1.net
Mon Apr 25 01:00:26 CEST 2011

Hi, R-Helpers!

I have a dataframe that contains a binomial variable.  I need to add another random variable drawn from a normal distribution with a specific mean and standard deviation.  This variable also needs to be correlated with the existing binomial variable with a specific correlation (say .75).  Any ideas?



More information about the R-help mailing list