[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: loop
Nick Cox <firstname.lastname@example.org>
Re: st: loop
Fri, 12 Oct 2012 12:17:42 +0100
I agree with the spirit of Muhammad's post.
The key points are
1. (Once more) People get a strong signal when they join the list that
they should read the Statalist FAQ before posting. In this case
dimpol7 is failing to give their full name -- an explicit request in
the FAQ -- and also apparently ignoring the advice to look at Stata
documentation before posting.
2. In this particular case, the answer is Yes, and a strong hint is to
look for help and documentation on -forvalues- and -foreach-. Typing
. search forvalues
in Stata will give several pointers.
On Fri, Oct 12, 2012 at 11:58 AM, Muhammad Anees <email@example.com> wrote:
> I think sending the same message again and again would not give any
> positive response. One question? Have you gone through the FAQs and
> searched the archives of this list? If not, I would recommend
> following a FAQ to do it so you can find some hints before getting
> proper discussions.
> On Fri, Oct 12, 2012 at 3:19 PM, - <firstname.lastname@example.org> wrote:
>> is there a way to perform regressions repeatedly, i.e. can I set a
>> loop over a regression and execute it for a number of times? What is
>> the code for that in Stata? Of course the data over which the
>> regression is done will change at every repetition, and I have
>> consecutive IDs on the data, so I want to have an number e.g. i =
>> 1,.....,1000 and for each i the new data is read and the regression is
>> performed on them.
>> Is there a way to do the same loop on the respective graphs?
* For searches and help try: