I am using marginsplot (in V16.1) with a by option and getting a graph I like, but I can't figure out how to change or eliminate the overall title, the one below that says "Predictive Margins of.....". The title and subtitle options are associated with each by group graph. I tried putting a title option in the by option as in, by(c2gtmot, title("overall")) but it is not allowed.
Thanks for your help.
Bob
margins aakircomb, at(bdage=(30(5)45)) by(c2gtmot)
marginsplot, by(c2gtmot) ///
ytitle("Pr(Outcome)") title("title") subtitle("subtitle",size(small)) ///
legend(order(7 "AA\No Failed" 8 "AA\No Success" 9 "AB\No Failed" 10 "AB\No Success" 11 "AB\Yes Failed" 12 "AB\Yes Success") size(small)) ///
ci1opts(color(maroon) ) plot1opts(lcolor(maroon) mcolor(maroon) lpattern(solid)) ///
ci3opts(color(maroon) ) plot3opts(lcolor(maroon) mcolor(maroon) lpattern(shortdash)) ///
ci5opts(color(maroon) ) plot5opts(lcolor(maroon) mcolor(maroon) lpattern(longdash)) ///
///
ci2opts(color(dkgreen) ) plot2opts(lcolor(dkgreen) mcolor(dkgreen) lpattern(solid)) ///
ci4opts(color(dkgreen) ) plot4opts(lcolor(dkgreen) mcolor(dkgreen) lpattern(shortdash)) ///
ci6opts(color(dkgreen) ) plot6opts(lcolor(dkgreen) mcolor(dkgreen) lpattern(longdash)) ///
xlabel(, format(%3.0f)) name(fail, replace)
Related Posts with Overall title when using a by option with marginsplot
Difference-in-Differences with Multiple Treatment Strengths/DosagesHi. I am trying to run a DiD regression to analyze the effect of education policy implementation on …
Sysuse auto/tabI have these two deliverables: 5. Find the mean, median, min and max winsorized Z-Score for the who…
Stucked with generating a loop of dummy variables using an indicator variableThe variables are biological_timeA, biological_timeB, biological_timeC, adopted_timeA, adopted_timeB…
Last character of last string is dropped when using local macro to name matrix columns, bewildering behaviorStata/MP 14.2 and my installation does not have internet access, so I cannot copy code or output to …
Sum of dummy but aggregatedDear all, I am running into an issue that I can use your expertise on. I will write out in this pos…
Subscribe to:
Post Comments (Atom)
0 Response to Overall title when using a by option with marginsplot
Post a Comment