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
esttab LaTex export problem Hi everyone, I have encountered a problem and could not find a resource which discusses it. I am ex…
New packages available on SSC: comtrade and htmltab2stataThanks two Kit Baum two new packages are available on SSC. comtrade comtrade downloads trade data f…
Putting labels for different variables in one line of code or loop?Hello, I would like to add labels for a set of different variables, i have around 15, and would lik…
Test for sufficient sample size in linear probability modelHi, I run the following linear probability model: Code: reg nodad k1sex i.meduc i.state i.mdecade…
Change legend automatically in graphDear Statalists, Suppose I have a data like this Code: * Example generated by -dataex-. To insta…
Subscribe to:
Post Comments (Atom)
0 Response to looping n times, and n is determined by another equation
Post a Comment