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
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
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
3 matches
Mail list logo