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)
Generate a list of unique firmsHi, I have a panel data and would like to generate a list of unique firms (e.g. gvkey), preferable e…
Saving the coefficients of the time fixed effect and averaging itDear Statalists, I would like to make out of sample predictions based on a two way fixed effect mod…
"0 (empty)" during logistic regressionDear Forum, I am having a problem with a logistic regression that uses an interaction variable, dum…
dropping observations if 2 strings are emptyHi I want to drop all observations which don't have date in 2 string variables: for example if A =…
Dynamic panel gravity model with PPMLDear Joao Santos Silva Tom Zylkin , Currently, I'm doing an investigation about the effects of Free…
Subscribe to:
Post Comments (Atom)
0 Response to Nested loop question (index changes for every loop)
Post a Comment