Statalist


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

st: AW: AW: Submitting a command in a couples of pieces


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: AW: Submitting a command in a couples of pieces
Date   Thu, 29 Oct 2009 16:31:22 +0100

<> 


Even the pros do not always know about this feature of -display-:
http://www.stata.com/statalist/archive/2009-09/msg01217.html




HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Donnerstag, 29. Oktober 2009 16:24
An: [email protected]
Betreff: st: AW: Submitting a command in a couples of pieces


<> 



*************
di "What is the first day of data collection?" _request(day)
3
di "Day of first data collection =$day "
drop if day<$day
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Adrian Sayers
Gesendet: Donnerstag, 29. Oktober 2009 16:21
An: [email protected]
Betreff: st: Submitting a command in a couples of pieces

Hi,

I was wondering if you might be able to help me?

I am trying to submit a command in a number of stages.

Basically i want stata to ask me a question, then i want to key the 
response, and then i want stata to run a program. It sounds a little 
pointless but i am trying read in 3000 odd data files plot them and then 
trim the file to the relevant section.

eg.
di "What is the first day of data collection?"
Type 3
di "Day of first data collection = 3"
drop if day<3

I am wondering if this is possible.

i am using stata version 9.2

Many thanks
Adrian


____________________________________________
Adrian Sayers
Medical Statistician
University of Bristol
Dept. of Rheumatology
c/o ALSPAC
Dept of Social Medicine,
Oakfield House,
Oakfield Grove,
Clifton
Bristol BS8 2BN
http://www.alspac.bris.ac.uk

Temp No. 0117 3310054 (10054 internally)
[email protected]
*
*   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/


*
*   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