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
variable not found Code: * Example generated by -dataex-. To install: ssc install dataex clear input str3 countrycode …
Long to wide with continuous timeHi everyone, I am looking for a way to convert a dataset from the long format to a wide format. How…
variable not found Code: * Example generated by -dataex-. To install: ssc install dataex clear input str3 countrycode …
Retrieving user-written command while Stata is openHello all, I wrote a program within a .do file and was having some debugging issues, so I moved it …
Stata not saving correctlyHello, I am making changes to a data file then saving under a different name. The file with the new …
Subscribe to:
Post Comments (Atom)
0 Response to Coefficient Plots of Groups
Post a Comment