Hi,
Thanks very much in advance for your time.
I want make the following commands into the nested loop.
Array
So, basically, my `i' starts from 1(1)12 and it moves to 2(1)13 and onto until 166(1)177. So I made a nested loop as below, but it never works.
Array
so I put `j+11' above but the problems is that Stata recognizes this as just `j' itself. I struggled with this a bunch of hour but couldn't address it.
Any advice or comments would be greatly appreciated.
Related Posts with Nested loop question (index changes for every loop)
Fixed effects vs random effectsHello, I am new to this forum and new to econometrics, so I was running a fixed effects regression …
nesting cond()hi All, I was reading the stata journal version: The Stata Journal (2005) 5, Number 3, pp. 413–420 …
Parsing a user-given command to add an "if touse"I've recently had occasion to write a program using the colon operator, where as is typical, an esti…
Dropping observations based on multiple conditionsHi, My data consists of multiple rows for each person. I want to keep the rows if the followup=0 or…
Error Correction Models for micro panelsHello all, I have a multi-level unbalanced panel (i.e., banks nested in countries) which is micro (…
Subscribe to:
Post Comments (Atom)
0 Response to Nested loop question (index changes for every loop)
Post a Comment