statsby mpg=_b[mpg], by(foreign) nodots: regress price weight length mpg
Likewise the above regression, I want to get the industry fixed effect coefficients for each industry and assign them their respective industry codes as a variable name. In regression, I have used i.industrycode, which works, but the variable name for the coefficients is random such as "_stats_." I tried to add i.industrycode = _b[i.industrycode], but Im getting an error. Is there any way to do it
Likewise the above regression, I want to get the industry fixed effect coefficients for each industry and assign them their respective industry codes as a variable name. In regression, I have used i.industrycode, which works, but the variable name for the coefficients is random such as "_stats_." I tried to add i.industrycode = _b[i.industrycode], but Im getting an error. Is there any way to do it

Comment