Statalist The Stata Listserver


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

Re: st: Newbie type question


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Newbie type question
Date   Wed, 7 Mar 2007 17:14:44 -0500

Morrison Hodges --
Why not just

use smith.rtdata
do rtanalalysis

?  I have a feeling some other concern is operative here.
Perhaps a short program would be of interest.

prog def rdo
use `2'.rtdata
do `1'
end
rdo rtanalalysis smith

On 3/7/07, Morrison Hodges <[email protected]> wrote:
This is a beginner's question, I'm sure, but I have not been able to do what
I want to do.
I have a lot of files generated by a separate custom program, all in the
form of *.rtdata. The * denotes the mnemonic for the patient's name. I want
to do some data studies on each file, and have started a .do file to do
that. The .do file name is rtanalysis, and a sample patient file is
smith.rtdata. I would like to type:

"do rtanalalysis smith"

and have the do file open the file "smith.rtdata" and do the analysis I have
written. Can anyone help? Thanks

Morry Hodges
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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