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
Fixed effect correlation matrixDear all, What is the command in stata to excecute a fixed effects correlation matrix of the variab…
Advice on changing data to split sample into size categoriesHello everyone, I have a panel data set with data on the investments of German firms into other cou…
Fill missing values with means using mipolateDear Statalists, I would like to fill missing observations in a panel. I found the mipolate command…
Predicting standardized residuals after mlogit (multinomial logistic regression) using svyset?Dear users, I kindly ask for your guidance regarding my following problem: I am conducting a multin…
Output interpretation diffDear Statalist, I am running a Difference in Difference analysis for a policy effect on employment …
Subscribe to:
Post Comments (Atom)
0 Response to looping n times, and n is determined by another equation
Post a Comment