format of syntax question

format of syntax question

by Laura Koth -
Number of replies: 1

why does this syntax show the correct plot:

graph bar (mean) heartatk, over(sex)


but this syntax does not? I was trying commands that are from the book chapter

graph bar (mean) heartatk ///
,
over(sex)

In reply to Laura Koth

Re: format of syntax question

by Kristen -

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)