Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I want to calculate the row sum of all *_F variables pertaining to eu
countries (all excluding US_F):
egen eutotal=rowtotal(GE_F NL_F UK_F)
However, I would prefer to follow some rules in selecting the variables, like
levels country if eu==1, local(lev)
This doesn't work, however. Any pointers would be appreciated.
* For searches and help try: