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: Is it possible to write a procedure in Stata that interacts with the user?
From
Michael Norman Mitchell <[email protected]>
To
[email protected]
Subject
Re: st: Is it possible to write a procedure in Stata that interacts with the user?
Date
Tue, 13 Apr 2010 11:40:42 -0700
Will this previous posting help?
http://www.stata.com/statalist/archive/2010-02/msg00171.html
Michael N. Mitchell
See the Stata tidbit of the week at...
http://www.MichaelNormanMitchell.com
On 2010-04-13 11.32 AM, Hoogendoorn, Adriaan wrote:
Dear Statalist,
Is it possible to write a procedure that interacts with the user?
To give an example of what I mean, suppose that I could create such an
interacting procedure "my_summarize" (in a do file) ending with:
sysuse auto
my_summarize mpg
Now I would like Stata to interact with the user, and want Stata to
come up with the following suggestion:
Type 1 if you want mean and standard deviation or
Type 2 if you want median an interquartile range.
Please type either 1 or 2.
.
Typing 1 or 2 from would now result in either the mean and sd of mpg or
its median and iqr.
Is such an approach (or some alternative) possible in Stata?
Kind regards,
Adriaan Hoogendoorn
GGZ inGeest
Dit e-mailbericht is uitsluitend bestemd voor de geadresseerde. Als dit bericht niet voor u bestemd is, wordt u verzocht dit aan de afzender te melden en het bericht te vernietigen. Het is niet toegestaan de inhoud van dit bericht verder te verspreiden of te gebruiken. Voor meer informatie over GGZ inGeest: www.ggzingeest.nl.
*
* 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/
*
* 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/