The following code runs a FE regression, stores the result set using `parmest`. Recovers the original FE variable (`inc`), and adds some value labels to it.
Let's take this code and resulting data set as given. I would now like to plot the fixed effects using eclplot. The following works without problem:
The twist: I would like to change the ordering. In eclplot, the order and distance is given by a float variable. For demonstration purposes, let the order be given by
Now, I can do
but then I lose the labels of the variables.
How can I plot the fixed effects with the order given by `order` and the labels coming from `inc`?
Code:
sysuse voter, replace reg pfrac I.inc, nocons parmest, fast drop if t == . gen inc = substr(parm, 1, 1) destring inc, replace label define asd 1 `"<15"' label define asd 2 `"15-30"', add label define asd 3 `"30-50"', add label define asd 4 `"50-75"', add label define asd 5 `"57+"', add label values inc asd
Code:
eclplot estimate min95 max95 inc
Code:
gen order = (-1)^inc + _n
Code:
eclplot estimate min95 max95 order
How can I plot the fixed effects with the order given by `order` and the labels coming from `inc`?
Comment