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
Programming problem - computing ages of children per woman in a longitudinal data using data on births.Hello, I'm looking for help in optimizing my overly convoluted syntax when it comes to the question …
Multiple linear regression for paired samples, possible?Hello, guys The response variable is average daily dose. I measured it at two time points, that dur…
Summary statistics per cik per yearDear all, I have a sample of panel data which contains data on a main firm: cik, a given year: year…
Recode variable based on previous valueCiao, Below is sample data. Code: clear input STUDENT GRADELEVEL STATUS WANT 1 10 0 0 1 10 0 0 1 …
how do we merge data setskindly help …
Subscribe to:
Post Comments (Atom)
0 Response to looping n times, and n is determined by another equation
Post a Comment