[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: collapse panel data for each year
Once you've -collapse-d the data once, you
have a new dataset, so I can't see that
you'd want to do this in a loop.
At first glance you just need to include
the variable for country in the -by()- option.
> I have panel data for several industries in 40 countries for
> 20 years. For
> each year, I am trying to collapse the data by country. I
> tried to use
> foreach and forvalues commands, but could not work it out. I would
> appreciate if you can help me.
* For searches and help try: