Statalist


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

st: RE: RE: RE: Calling a Do-file


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: RE: Calling a Do-file
Date   Thu, 23 Oct 2008 18:54:26 +0100

This is very well covered in the User's Guide [U]. In fact the basics of
Stata programming are covered there too. Despite its name, the
Programming manual is not the first place to look. A more accurate name
for that would be "Further aspects of Stata programming". 

Nick 
n.j.cox@durham.ac.uk 

jasonm@ucla.edu

I think what I'm asking is can you point me in the direction of  
documents describing how to write a function in Stata with arguments  
(where the function is a do-file).

jasonm@ucla.edu

> Is there a way to run a do-file (ie secondary do-file) from inside
> another do-file (ie primary do-file) and change a variable inside the
> secondary do-file?
> For example,
> replace j=1
> do "C:\xyz.do"
> replace j=2
> do "C:\xyz.do"

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index