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
The first stage outcome estimated by "ivreg2 savefirst" different from its OLS estimationI use two specifications to estimate the first stage for the relationship between the endogenous var…
twoway bar option over() not allowedHello, I am trying to combine a clustered-type bar chart with a scatter plot (I know it's an odd co…
what is the test after ppml? help needed, thank youDear Joao, I am doing a Gravity Model estimating the export potential of China tea to other countrie…
how to obtain frequencies by groups in a two-way tab?Hi, I'm working with a dataset that has many variables. Two of them are age and gender. I want to ob…
Help MCO vs PPML (Ramsey Test)Hi, I am trying to estimate a gravity equation. I have used MCO and PPML. However, the MCO results …
Subscribe to:
Post Comments (Atom)
0 Response to Coefficient Plots of Groups
Post a Comment