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
Counting number of occurrence of observations based on two variablesDear community, I have a dataset; the following code generates a snippet of it Code: clear input …
merging datasetsI am trying to merge two datasets, which have the date variable in common. However, when I try to me…
Combine different tabstat results in oneCan I substitute count of the number of observations with the count of unique "conm" which stands fo…
Drop observations given multiple conditionsHi everyone, I am working on a state dataset where I need to keep observations of firms with non-mi…
Can xtabond2/xtdpdgmm be applied to estimate a static (rather than dynamic) panel data model?Dear All, The (ssc install) xtabond2 and (ssc install) xtdpdgmm commands are commonly used to estima…
Subscribe to:
Post Comments (Atom)
0 Response to Coefficient Plots of Groups
Post a Comment