Dear Stata Users,
I have an unbalanced panel data. What I need is to save the coefficient of i.gvkey (for each observation - firm(gvkey)-year) from the following regression:
Can you please specify the way I can proceed with? I found in the previous postings of the forum the following method:
However, I am conserned if stata treats the data as a panel while estimating the coefficient.
Best regards,
Alberto
I have an unbalanced panel data. What I need is to save the coefficient of i.gvkey (for each observation - firm(gvkey)-year) from the following regression:
Code:
xtset gvkey1 fyear reg bm_w cum_ret_w b1cum_ret_w b2cum_ret_w b3cum_ret_w b4cum_ret_w b5cum_ret_w b6cum_ret_w i.fyear, r
Code:
xtset gvkey1 reg bm_w cum_ret_w b1cum_ret_w b2cum_ret_w b3cum_ret_w b4cum_ret_w b5cum_ret_w b6cum_ret_w i.fyear, r predict gvkey1_effect
Best regards,
Alberto
Comment