I have 4 different sets of regression coefficients that I would like to plot using coefplot. However, my coefficients have very different sizes and units. Is it possible to create different x-axes for every coefficient (while keeping the x-axes aligned, i.e. the tick for the value 0 is in the same place)?
What I would like to get is a graph like this example, only that there is a suitable x-axis for every variable. Is that possible? Thank you very much.
Array
My code to create the above graph:
Code:
sysuse auto ,clear
set seed 1234
gen dummy = (runiform()<0.5)
forval i = 0/1 {
forval j = 0/1 {
reg price mpg headroom weight length if foreign == `i' & dummy == `j'
est sto f`i'_d`j'
}
}
coefplot (f0_d0 ,label("dummy = 0")) (f0_d1 ,label("dummy = 1")) ,bylabel("domestic") ///
|| f1_d0 f1_d1 ,bylabel("foreign") || ///
,drop(_cons) xline(0)
0 Response to Axis manipulation in coefplot iwth multiple subgraphs
Post a Comment