Hi,
I have variable "make" with 82 values. I used commands:
egen dmake = group(make), label
reg price i.dmake
This created a factor variable and performed a regression just like I wanted, giving each value (except baselevel) of variable dmake a beta coefficient. Now I want to add to my original data a column with those betas corresponding to the value of dmake for every observation.
Can I do that?
Thank you for your help!
Olga
I have variable "make" with 82 values. I used commands:
egen dmake = group(make), label
reg price i.dmake
This created a factor variable and performed a regression just like I wanted, giving each value (except baselevel) of variable dmake a beta coefficient. Now I want to add to my original data a column with those betas corresponding to the value of dmake for every observation.
Can I do that?
Thank you for your help!
Olga