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
Create list of variables w/ different redaction patterns & dropping specific redacted variables based on other non-redacted varsHello, disclaimer: dataset contains PHI therefore I have recreated a replica with substituted varia…
extract data from excel in loopDear stata experts, I would like to extract data from an excel spreadsheet regularly, e.g. cell (B4…
granger causality_second timeHello everyone I tried many times to run granger causality test but i got HTML Code: repeated time…
How Poisson pseudo-maximum Likelihood deals with overdispersion.Dear forum, My question is more theoretical, but I hope I can find an answer here. I am running a …
2x3 categorical interactionHi Listers, I want to make sure I am correctly interpreting my 2*3 interaction following a logistic…
Subscribe to:
Post Comments (Atom)
0 Response to Overall title when using a by option with marginsplot
Post a Comment