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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: Writing a Stata dataset within mata


From   John Luke Gallup <jlgallup@pdx.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Writing a Stata dataset within mata
Date   Thu, 23 Aug 2012 14:36:42 -0700

I am interested in saving a Stata dataset from within mata.  I see that there are the commands -st_fopen()- and -st_fwritesignature()- to open and create the header, but it is not clear to me how then to write the Stata variables to the Stata dataset.  Alternatively, I could use the commands -st_store()- and  -stata("save ..., replace")- but I am not sure if there are disadvantages to this.  Any advice would be appreciated.

John
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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