Dear Stata mambers,
I have a dataset with ca 400 variables over 10 years. The dataset consists of two groups of variables, each sharing same prefix followed by County-ISO-Code (Stat_* and Tr_* with * for US, DE etc.).
I need to generate variables for each pair of ISO-Codes (e.g. Stat_DE*Tr_DE).
There is a solution for similar problem: http://www.stata.com/statalist/archi.../msg00402.html
Unfortunately unlike the example the groups in my dataset are not equal in size - there are more Stat_* variables than Sp_*.
Thank you for your help.
I have a dataset with ca 400 variables over 10 years. The dataset consists of two groups of variables, each sharing same prefix followed by County-ISO-Code (Stat_* and Tr_* with * for US, DE etc.).
I need to generate variables for each pair of ISO-Codes (e.g. Stat_DE*Tr_DE).
There is a solution for similar problem: http://www.stata.com/statalist/archi.../msg00402.html
Unfortunately unlike the example the groups in my dataset are not equal in size - there are more Stat_* variables than Sp_*.
Thank you for your help.
Comment