[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: get a dummy for year*region
Marcelo Moreira wrote:
> Hi there.
> I would like to know how I can get a dummy for each possible
> combination between year and region.
> I tried:
> tab region your, gen(dummy)
> But it doesnt work. Any hints?
egen `x' = group(region year)
tab `x', gen(dummy)
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
* For searches and help try: