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]
st: how to generate many dofiles in a program?
From
"Hauck, Katharina D" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: how to generate many dofiles in a program?
Date
Sun, 19 Jan 2014 12:16:53 +0000
Dear STATA community,
I want to generate 300 STATA do-files in a program, varying two macros for
each of the separate do-files. There is a thread on that issue, and
apparently the file write command can be used to created STATA do-files in
a program, but it is not clear to me how exactly to do that.
As background: I need to run a very computationally intensive job on a
high performance computer in parallel. I run a regression repeatedly with
varying combinations of regressors, and save the results. I want to split
the job in 300 separate batches, and per batch, I want to run 1000
regressions. In need to vary for each do-file the set of regressors (I
use the tuples ado from Nick Cox). Our HPC does not accept the user
written parallel programming ado, so I need to farm this out myself, and I
see no other solution but to create 300 do-files from one master do-file,
changing the range of tuples to be estimated in each of the 300 files.
Thanks!
Katharina.
--------
Katharina Hauck
Centre for Health Policy
Imperial College Business School
London, United Kingdom
http://www.imperial.ac.uk/people/k.hauck
Phone: +44 (0)20 7594 9197
Skype: katharinadianahauck
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/