It works if the over is on the same line as the comma like this:
graph bar (mean) heartatk, over(sex)
same as:
graph bar (mean) heartatk ///
, over(sex)
It works if the over is on the same line as the comma like this:
graph bar (mean) heartatk, over(sex)
same as:
graph bar (mean) heartatk ///
, over(sex)