[R] Determining the correlation coefficient?

2009-12-14 Thread Anja Mohorko
Hello, I need your help! Probably the answer is quite easy, but still ... How can I sample two (or more) vectors of data from a normal distribution so they are correlated with an exact value I select (for example pearson's r = .30)? Thanks! James [[alternative HTML version

Re: [R] Determining the correlation coefficient?

2009-12-14 Thread Liviu Andronic
Hello On 12/14/09, Anja Mohorko nekostrg...@yahoo.com wrote: Hello, I need your help! Probably the answer is quite easy, but still ... How can I sample two (or more) vectors of data from a normal distribution so they are correlated with an exact value I select (for example pearson's r =

Re: [R] Determining the correlation coefficient?

2009-12-14 Thread Ravi Varadhan
, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619 email: rvarad...@jhmi.edu - Original Message - From: Liviu Andronic landronim...@gmail.com Date: Monday, December 14, 2009 8:52 am Subject: Re: [R] Determining the correlation