Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Putting a multivariate normal draw into a matrix?


From   Nick Chandler-Klein <nickck@uw.edu>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Putting a multivariate normal draw into a matrix?
Date   Mon, 6 May 2013 23:33:57 -0700

I'm trying to make a draw from a non-orthogonal multivariate normal
distribution and use that draw as starting values for a ml routine,
which means I need the draw to be in matrix form. Is there a way to do
this?

rnormal only seems to accept orthogonal distributions, and drawnorm
generates variables instead of a matrix. I suppose worst case I can
use drawnorm and feed the results one-by-one into a matrix but I'm
hoping for something more general purpose.

Thanks!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index