Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Maarten Buis <maartenlbuis@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: MATA matrix to Stata data |
Date | Tue, 13 Aug 2013 09:26:09 +0200 |
On Tue, Aug 13, 2013 at 4:46 AM, Darren White wrote: > Does anyone know the Mata command equivalent to the "svmat" command in Stata standard matrix language? *------------------ begin example ------------------ set obs 10 mata x = rnormal(10,1,0,1) idx = st_addvar("double","foo") st_store(.,idx,x) end list *------------------- end example ------------------- * (For more on examples I sent to the Statalist see: * http://www.maartenbuis.nl/example_faq ) Hope this helps, Maarten --------------------------------- Maarten L. Buis WZB Reichpietschufer 50 10785 Berlin Germany http://www.maartenbuis.nl --------------------------------- * * 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/