Statalist


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

st: New Stata commands


From   Julian Reif <[email protected]>
To   [email protected]
Subject   st: New Stata commands
Date   Sat, 28 Feb 2009 10:36:32 -0600

Hi all,

I have uploaded some new Stata commands to the SSC archive that some of you may find useful. They provide a new way to save estimation and returned results, and also allow you to automatically output those results into customized LaTeX tables. The main difference between these and other user-written commands that do similar things is that the saving and outputting of results are two separate steps. For example, you can first save all of your estimation results into a Stata dataset using -regsave-, then manipulate them using Stata commands, and finally output them into a LaTeX table using - texsave-. (Alternatively, you can just use -regsave- by itself to collect and analyze results in Stata.) Descriptions of my commands are provided below. If you have any feedback please let me know via email.

-regsave- fetches estimation results and stores them in a Stata- formatted dataset.

-svret- replaces the dataset in memory with the scalars and macros stored in e(), r(), and s().

-texsave- outputs the dataset currently in memory to a file in LaTeX format. It includes macro code that can be read by Scientific Word (SW) so that full SW functionality is retained.

-sortobs- allows the user to sort observations by either (1) a variable's specific values or (2) observation numbers. Observations that are not specified in the command retain their original, respective sort orders. This command is useful if you want to reorder observations before outputting them into a table.


I have also written two other miscellaneous utilities:


-appendfile- appends a text file to another text file.

-autorename- renames variables according to values stored in a particular row. This can be useful when trying to -insheet- certain oddly formatted datasets.

Cheers,
Julian Reif
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index