Hello,
I wish to loop n times, say:
forvalues i = 1(1)n{
and n is defined by the last number of id:
egen id = group(firm)
May I kindly ask how to write this code please?
Related Posts with looping n times, and n is determined by another equation
Why my boxplot in Stata isn't showing whiskers?Good day! Please let me know how I can make the whiskers appear for my boxplot. I am just following …
How to drop random years from panel data?I have a panel data set, consisting of 125 countries, 36 years. I want to run an IV regression multi…
obtain coefficient from interaction dummiesDear all , I ran this regression: reg lnmwage totalpers addshift edulength urate vrate i.hlofeduc#…
Does it make sense to use decadal dummies for quinquennial data?Dear Statalists, I have a question of if it is reasonable to use decadal dummies as time fixed effe…
No chi2 statistics calculated for mlogtest, combine commandHi there I am trying to run 'mologtest, combine' after running the mlogit regression: svy: mlogit …
Subscribe to:
Post Comments (Atom)
0 Response to looping n times, and n is determined by another equation
Post a Comment