Hi all,
I have a panel data with countries and different macro variables per each country, over time. The analysis I am running consists in regressing one macro variable on another for each country and what I am interested in is the coefficient (beta). I.e.
I'm using a loop and I get the coefficient for each country - let's call it beta_b. What I want to do now is to test whether these beta_b are different between countries. I tried using "test", with the following code, but it doesn't work:
What would you suggest using?
The error I get is:
when country_1 appears in my variables list.
I have a panel data with countries and different macro variables per each country, over time. The analysis I am running consists in regressing one macro variable on another for each country and what I am interested in is the coefficient (beta). I.e.
Code:
regress macro_a macro_b if country_id == 1
Code:
foreach y of global c_all { regress macro_a macro_b if country=="`y'" mat beta=e(b) svmat double beta, names("`y'") } test country_1 == country_2 == coutnry_3
The error I get is:
Code:
country_1 not found
Comment