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]
Re: st: MATA matrix to Stata data
From
Maarten Buis <[email protected]>
To
[email protected]
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/