Dear all,
Below my codes for margins plot which is throwing up error message. The 'marginsplot' works fine when I am using the 'by' option alone. Whenever any sub-option with 'by' is added, the error message plays the role. I am sure it is a valid command for 'twoway graph' options and used it several times. Not sure why it is not working with marginsplot:
Is the sub-options followed by 'by' not allowed with 'marginsplot' ? I would not assume so.
Stata version: 14.1, OS: Mac 64-bit
Updated as of today.
Below my codes for margins plot which is throwing up error message. The 'marginsplot' works fine when I am using the 'by' option alone. Whenever any sub-option with 'by' is added, the error message plays the role. I am sure it is a valid command for 'twoway graph' options and used it several times. Not sure why it is not working with marginsplot:
Code:
margins i.sex, at(lmg=(15(10)65)agecen=(-4.4 -1.4 1.5 4.5)) marginsplot, xdim(lmg) by(sex, title("My title")) option title() not allowed
Stata version: 14.1, OS: Mac 64-bit
Updated as of today.