[R] Sampling 1000 times from a bivariate normal distibution

Roger D. Peng rpeng at jhsph.edu
Tue May 4 17:38:32 CEST 2004


The MASS library has the function mvrnorm() which you should be able 
to use.

-roger

Sung Kim wrote:
> Dear expert,
> 
>  
> 
> I have two coefficients and covariance matrix. 
> 
>  
> 
> My objective is sampling 1000 times from the mean and covariance matrix.
> 
>  
> 
> In order to get that, what kind of commend should I use?
> 
>  
> 
> If you do not mind, could you tell me the comment in detail about
> parameter used in that commend also? 
> 
>  
> 
> Thank you.
> 
>  
> 
> Sung.
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list