Re: [R] simulate data with binary outcome and correlated predictors

2008-11-11 Thread Greg Snow
> To: r-help@r-project.org > Subject: [R] simulate data with binary outcome and correlated > predictors > > Hi, > > I would like to simulate data with a binary outcome and a set of > predictors that are correlated. I want to be able to fix the number of > event (Y=1) vs

[R] simulate data with binary outcome and correlated predictors

2008-11-11 Thread Delphine COURVOISIER
Hi, I would like to simulate data with a binary outcome and a set of predictors that are correlated. I want to be able to fix the number of event (Y=1) vs. non-event (Y=0). Thus, I fix this and then simulate the predictors. I have 2 questions: 1. When the predictors are continuous, I can use m