[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: how to creating a variable recording the sum of another variable by group in panel data?
sorry for the silly question. I have just found that I can do this:
egen alloutput=total(output), by(industry year)
I did try this before but I put it as by(industry, year) and it didn't work.
* For searches and help try: