Dear Stata users,
I have a problem with the range of y scale's marginsplot. I have a (0 100) dependent variable, but the y-scale of the marginsplot has a different range:


Sorry, but I don't understant why the range of de y scale of the marginsplot is not (0 100) as the range of the dependent variable.
I would appreciate yours advices.
Thanks in advance,
Rocio
I have a problem with the range of y scale's marginsplot. I have a (0 100) dependent variable, but the y-scale of the marginsplot has a different range:
HTML Code:
. regress INCOME c.MONTER1##c.MONTER2 , r
. margins, at( MONTER1= (200 1202222) MONTER2=(0 0.5)) vsquish
. marginsplot, xsize(13) ysize(9) scale(0.8) noci noseparator recast(line) plotopts(lwidth(medthick) lcolor(black) cmissing(n) connect(direct)) plot1opts( lpattern(dash_dot_dot)) plotregion(fcolor(white)) graphregion(fcolor(white)) xtitle(" ") legend(order(1 "Low MONTER2" 2 "High MONTER2") size(medsmall) ) clegend(region(fcolor(white) lcolor(white))) title("") xlabel(200 "Low MONTER1" 1150000 "High MONTER2") yline(0) yline(100)
HTML Code:
. marginsplot, xsize(13) ysize(9) scale(0.8) noci noseparator recast(line) plotopts(lwidth(medthick) lcolor(black) cmissing(n) connect(direct)) plot1opts( lpattern(dash_dot_dot)) plotregion(fcolor(white)) graphregion(fcolor(white)) xtitle(" ") legend(order(1 "Low MONTER2" 2 "High MONTER2") size(medsmall) ) clegend(region(fcolor(white) lcolor(white))) title("") xlabel(200 "Low MONTER1" 1150000 "High MONTER2") yline(0) yline(100) yscale(r(0 100)) ylabel(0(10)100)
Sorry, but I don't understant why the range of de y scale of the marginsplot is not (0 100) as the range of the dependent variable.
I would appreciate yours advices.
Thanks in advance,
Rocio

Comment