Dear all,
I need to generate a new variable for each coefficient estimated from a xtreg in a panel data. I used the commands:
While this code works when my data is not xtset, here I get a new var containing all identical observations that correspond to the last xtreg.
How can I get different coefficients for each country (id)?
Thank You
Stefano
I need to generate a new variable for each coefficient estimated from a xtreg in a panel data. I used the commands:
Code:
by country (date), sort: xtreg y x1 x2 x3, fe by country (date), sort: gen b1 = _b[x1] by country (date), sort: gen b2 = _b[x2] by country (date), sort: gen b3 = _b[x3]
How can I get different coefficients for each country (id)?
Thank You
Stefano
Comment