I have a question about interactions and the reference categories when using the margins command. Specifically, I want to compare all categories to the same base reference category. So, for example, I might have an interaction of dummy variables, age and gender like this:
reg income age##female
margins, over(r.age) at(female=(0 1))
This will give me the difference between age categories for males, and the difference between age categories for females.
But what I want to do is compare all groups to young males. Specifically, how can I get a "diagonal" difference that compares young males to older females?
Thanks in advance for advice.
reg income age##female
margins, over(r.age) at(female=(0 1))
This will give me the difference between age categories for males, and the difference between age categories for females.
But what I want to do is compare all groups to young males. Specifically, how can I get a "diagonal" difference that compares young males to older females?
Thanks in advance for advice.
Comment