Dear Statalisters,
I have graphed a coefplot with 4 subgraphs, each containing a different model. I would like to specify the y-axis range/scale for each graph but stata doesn't let me! Ideally I want each axis to be centered around zero!
Here is my code:
coefplot (A), bylabel(Years of Education) || (B) , bylabel(Primary Completion) || (C) , bylabel(Secondary Completion) || (D) , bylabel(Education Participation) ||, keep(b4pol26 b4pol25 b4pol24 b4pol23 b4pol22 b4pol21 b4pol20 b4pol19 b4pol18 b4pol17 b4pol16 b4pol15 b4pol14 b4pol13 b4pol12 b4pol11 b4pol10 b4pol9 b4pol8 b4pol7 b4pol6 b4pol5 b4pol4 b4pol3 b4pol2) coeflabels(b4pol27="27" b4pol26="26" b4pol25="25" b4pol24="24" b4pol23="23" b4pol22="22" b4pol21="21" b4pol20="20" b4pol19="19" b4pol18="18" b4pol17="17" b4pol16="16" b4pol15="15" b4pol14="14" b4pol13="13" b4pol12="12" b4pol11="11" b4pol10="10" b4pol9="9" b4pol8="8" b4pol7="7" b4pol6="6" b4pol5="5" b4pol4="4" b4pol3="3" b4pol2="2") xlabel(,alternate labsize(small) tlength(2)) byopts(legend(off) title(Coefficients of Interaction: Age in 1989*Female, size(medium)) note("*Cohort aged 27 in 1989 is omitted") yrescale xrescale ) vertical yline(0,lcolor(black)) p1(ylabel(-2(1) 2) ysc(r(-2 2))) p2(ylabel(-.2(.1) .2) ysc(r(-.2 .2))) p3(ylabel(-.2(.1).1) ysc(r(-.2 .1))) p4(ylabel(-.2(.1).3) ysc(r(-.2 .3))) norecycle
I also tried including the specific y-axis scales as modelopts within each of the model parentheses, but this also didn't work - Stata simply applies the last specified range to all plots. Even though I use the option norecycle!
I would appreciate any help, I have been trying everything I can possibly think of.
Thank you very much in advance!
Kind rgds,
Valentina
Related Posts with Coefplot subgraphs - how to tailor the axis scale of each subgraph?
Interpreting the economic significance of regression coefficientsDear Stata members, For replicating a paper, I have chosen 2 variables, cash divided by total assets…
Generating elasticities for individual cases using the 'aidsills' commandDear Statalisters, I'm using the 'aidsills' command for estimating demand systems developed by Lecoq…
Fixed effects for IV using cross section dataDear Statlist users, I am studying the impact of parental investments in early childhood, as record…
PstestHi, I'm using Stata 16 for my analysis. I've run the pstest command to obtain results for the balan…
Coefficient Plot -- the same predictor's Beta Coefficients of Different Models in the same Plot Hi all, How to generate the Coefficient Plot which demonstrates the same predictor's beta coeffici…
Subscribe to:
Post Comments (Atom)
0 Response to Coefplot subgraphs - how to tailor the axis scale of each subgraph?
Post a Comment