<>
Martin said
" when using tsset how do I create unique id for each
industry-country pair"
I cannot see how this is related to -tsset-ing. -egen, group()- does
the job
with or w/o it...
It is common to have a 'multidimensional panel', i.e. one in which
there is no unique 'i'. For instance my data are indexed by
'i' (exporter), 'j' (importer) and 't' (time). How do I create an 'i'
variable for use in -tsset- or -xtset-? egen group(exporter importer)
creates a new variable for each distinct country-pair, and that
variable can be used in -tsset-.
Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html
An Introduction to Stata Programming
| http://www.stata-press.com/books/isp.html
An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/