I am requesting marginal means after running anova on StataSE 14, and am wondering why I am getting different values from the seemingly similar commands below.

#1
Code:
anova selfesteem census c.ses
pwcompare census, cimargins
#2
Code:
anova selfesteem census c.ses
margins census
Please let me know if there is anything I can provide for more clarity.

Thank you in advance,
Julia