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?
>
> RESPONSE:
try:
tempvar x
egen `x' = group(region year)
tab `x', gen(dummy)
john
> *
> * 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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/