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
Cumulative event duration with repeated events as a function of follow up timeDear STATAlist I have a dataset with a starting date (different for each id), and different events …
Drop duplicate quarterly datesHi, I am working with a dataset which consisted of monthly obeservations of two variables m1 and m3…
Comparing categorical variables over time in a randomised cluster trialGood morning everyone, hope you're all well - and hope that you can help with some confusion. I hav…
Time specification Dear colleagues, I am working on 15 years of repeated cross-sectional data. I was wondering whethe…
putexcel command - errorHi all I have a question about the putexcel command. When I run the code, sometimes I get the foll…
Subscribe to:
Post Comments (Atom)
0 Response to Overall title when using a by option with marginsplot
Post a Comment