Re: [R] Create correlated data with skew

2007-09-18 Thread Dimitris Rizopoulos
Quoting bbolker <[EMAIL PROTECTED]>: > > > > Mike Lawrence wrote: >> >> Hi all, >> >> I understand that it is simple to create data with a specific >> correlation (say, .5) using mvrnorm from the MASS library: >> >> > library(MASS) >> > set.seed(1) >> > >> > a=mvrnorm( >> +n=10 >> +,mu

Re: [R] Create correlated data with skew

2007-09-18 Thread bbolker
Mike Lawrence wrote: > > Hi all, > > I understand that it is simple to create data with a specific > correlation (say, .5) using mvrnorm from the MASS library: > > > library(MASS) > > set.seed(1) > > > > a=mvrnorm( > + n=10 > + ,mu=rep(0,2) > + ,Sigma=matrix(c(1,.5,.5,1),2,2

[R] Create correlated data with skew

2007-09-17 Thread Mike Lawrence
Hi all, I understand that it is simple to create data with a specific correlation (say, .5) using mvrnorm from the MASS library: > library(MASS) > set.seed(1) > > a=mvrnorm( + n=10 + ,mu=rep(0,2) + ,Sigma=matrix(c(1,.5,.5,1),2,2) + ,empirical=T + ) > a