Statalist The Stata Listserver


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

Re: st: Newbie type question


From   "Neil Shephard" <nshephard@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Newbie type question
Date   Wed, 7 Mar 2007 22:56:49 +0000

On 3/7/07, Morrison Hodges <hodge002@umn.edu> 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
In the call...

. do rtanalsysis smith

the "smith" part is an argument, and you can refer to arguments by
their indexed value, so wherever you would want to use the patients
name in the do-file you should use `1' in your do-file.

In the manuals I have to hand this is in [U] 19.6.1 (but they are an
old v6 set so this may have changed in newer versions).

Neil

--
"Every great advance in natural knowledge has involved the absolute
rejection of authority."  - Thomas H. Huxley

Email - nshephard@gmail.com / neilshep@cyllene.uwa.edu.au
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index