[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: A comment on abbreviations

From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   RE: st: A comment on abbreviations
Date   Mon, 22 Sep 2008 21:05:23 +0200

Last night I was wondering whether I could write a small -program- that would let me run abbreviated code through Stata, such as the now immortalized -prob f p w- and have Stata create a log or screen output returning the fully expanded version -probit foreign weight price- (which I could then paste into the mail to the list).
At first I sought refuge in the -e(cmdline)- returned by estimation commands, but that one merely expands -probit- while still leaving -f w p- untouched. Furthermore, it would work only for those commands that bother to return -e(cmdline)-. So, as a challenge to the more seasoned programmers on the list, is there a way to do it? If there is one, I could type my beloved abbreviations while posting fully expanded commands to the list...


* For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index