Hi everyone,
I have a simple coding question. I have a firm panel data (earnings, assets, labor) and I know where each firm is located (country). I would like to run all possible combinations of countries in my data set. The regression is the following:
1) Earnings of firm= a+b total assets +b labor+u
Let's assume that I have a variable called country and there are 3 countries in it (a,b,c)-some firms are located in country a, some in b and some in c. I would like to run this regression for all combinations of this three countries. :
a
b
c
ab
ac
bc
How can I code this in Stata (note I have 20 countries in the real dataset)? I looked at permute, but it is not doing what I was hoping. Any ideas?
Thank you
Chiara
I have a simple coding question. I have a firm panel data (earnings, assets, labor) and I know where each firm is located (country). I would like to run all possible combinations of countries in my data set. The regression is the following:
1) Earnings of firm= a+b total assets +b labor+u
Let's assume that I have a variable called country and there are 3 countries in it (a,b,c)-some firms are located in country a, some in b and some in c. I would like to run this regression for all combinations of this three countries. :
a
b
c
ab
ac
bc
How can I code this in Stata (note I have 20 countries in the real dataset)? I looked at permute, but it is not doing what I was hoping. Any ideas?
Thank you
Chiara
Comment