Dear Statlist,
I am using a regression model with a continous outcome variable and two binary independent variables. this are included as main effects and as interaction.
this is followed by the margins command and afterwards the margins plot.
my code reads as follows:
everyhing works so far but what i do not like is that on the x axis the kids and teens label as well as the dots in the plot are very much at the left/right of the plot, id like it to be more centered because its an indicator variablen which can only be kids or teens...
can anyone help me?
I use Stata 15 (unfortunately...)
Best and thank you so much
Anne
I am using a regression model with a continous outcome variable and two binary independent variables. this are included as main effects and as interaction.
this is followed by the margins command and afterwards the margins plot.
my code reads as follows:
Code:
reg TOTAL sex##age margins, at(age=(0 1) sex=(1 2)) marginsplot, ytitle(TOTAL) xtitle(agegroup) title("Total") /// plot1opts(lcolor(black) lpattern("....") mcolor(black)) /// plot2opts(lcolor(gs6) lpattern("--") mcolor(black)) ciopt(color(black)) /// xlabel(0 "kids" 1 "teens") graphregion(margin(large))
can anyone help me?
I use Stata 15 (unfortunately...)
Best and thank you so much
Anne
Comment