Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[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 <[email protected]>
To   statalist <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index