Apologies- I am not quite sure how to properly phrase my question.
I want to know the average marginal effect of SES by female. At the same time, I want to know the average marginal effect of read and science (unconstrained by female). Is there a way to do this with one line of code? And is this necessary? Shouldn't the AMEs of read and science be unaffected by whether I examine the AMEs of SES by female?
Also, can you please clarify the interpretation of the interaction. Is the following correct? Relative to males, the predicted probablity of females who go from low to middle SES entering the honors program is -.17 lower?
I want to know the average marginal effect of SES by female. At the same time, I want to know the average marginal effect of read and science (unconstrained by female). Is there a way to do this with one line of code? And is this necessary? Shouldn't the AMEs of read and science be unaffected by whether I examine the AMEs of SES by female?
HTML Code:
use https://stats.idre.ucla.edu/stat/data/hsbdemo logit honors i.female##i.ses read science margins, dydx(ses) at(female=(0 1)) logit honors i.female##i.ses read science margins, dydx(*)
Comment