Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Generating multivariate normal random variables


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: Generating multivariate normal random variables
Date   Sun, 01 Jun 2003 11:49:10 +0900

Mike Hollis posted:

> Assuming I have a (KxK) covariance matrix (or alternatively,  a set of
> pairwise correlations) and (kx1) vector of means for a population.  How can
> I generate an (n x K) dataset containing a sample n random observations
> drawn from a multivariate normal distributions?

-drawnorm- will do this.  It was made an official Stata command under that name in 
Release 6 or 7, as I recall.  I've forgotten the name of its predecessor.  

-findit random multivariate normal- will point you to it.

Joseph Coveney



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index