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: RE: running a whole set of analyses for several subsamples
From
"Rubil Ivica" <[email protected]>
To
<[email protected]>
Subject
st: RE: running a whole set of analyses for several subsamples
Date
Tue, 1 Apr 2014 14:34:01 +0200
Rafaelle,
why not something like:
foreach value in value1 value2 value3 ...... {
command1 if var==`value'
command2 if var==`value'
...
...
}
I don't know if this helps.
// ir //
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raffaele
Palladino
Sent: Tuesday, April 01, 2014 2:23 PM
To: [email protected]
Subject: st: running a whole set of analyses for several subsamples
Dear statalist users, I have the following problem:
For a dataset I have a whole set of analyses to run on a do file but I
have to do the same for several subsambles defined by the values of a
specific variable. At the moment I am adding at the end of each test
(example) "reg.... if var==value" but I was wondering if I can use a
command that can be somehow a time saver considering the total amount of
statistical tests to run are more than 20 and the values of the variable
quite a lot as well. I was also wondering if this type of command can
work with svy and mi as well.
thank you very much in advance
Raffaele
*
* 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/
*
* 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/