Dear Statlisters,

I am running the following regression:

bys permno: astile q=rp, nq(5)

levelsof q, local(q)
foreach i of local q {
eststo: qui reghdfe y x1 x2 x3 if q == `i', absorb(year permno) vce(cluster permno)
}

Question: I want to plot the coefficients of x1 for each group(q1 q2 q3 q4 q5) on the x-axis. After running this regression I am using following code to accomplish this.

coefplot est1 est2 est3 est4 est5, keep(disagree_rf) vertical ysc(reverse) drop(_cons)

Note: I have reversed the Y-axis because from q1 to q5 the coefficient of x1 is increasing and I want to show this in the graph.

Your timely response will be highly appreciated.