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.
Related Posts with Coefficient Plots of Groups
Convert Scientific Notations (e-07) into Decimal NotationHi All, I have various observations in my dataset like- 1.40e+09, 1.57e-07. How to convert these s…
Deleting entire Firm based on condition from panel data setHello Stata community, I have a panel dataset consisting of many firms over 20 years. Firms are iden…
Graphic with graphs for sub catvars and overall graphHello, I want to create a graphic with multiple graphs for each sub catvar and also a graph that is…
collect: rows and columns' name changed?I am trying to learn Stata's -collect- and to manipulate tables. I find the manipulating part hard. …
Why some global parameter is in { } while the others are not?Dear all, I'm helping my prof modify past code to adjust to the new dataset. It is my first time us…
Subscribe to:
Post Comments (Atom)
0 Response to Coefficient Plots of Groups
Post a Comment