Imagine you have three indicator variables for height: short, medium, and tall; an indicator variable for whether the person has ever donated; and a continuous variable for their income. The goal is to regress the likelihood that a person has given to charity based on their height and income: "logit donation i.short i.medium c.income".
First, how can you get the predictive margins to show the probability each height designation gives to charity controlling for income in a chart? (i.e., a chart that has the x-axis as short medium tall and the y-axis with probability).
Second, what is the difference between "margins, dydx(race1 race2) atmeans" and "at(race1=(0 1) race2=(0 1) atmeans"?
First, how can you get the predictive margins to show the probability each height designation gives to charity controlling for income in a chart? (i.e., a chart that has the x-axis as short medium tall and the y-axis with probability).
Second, what is the difference between "margins, dydx(race1 race2) atmeans" and "at(race1=(0 1) race2=(0 1) atmeans"?
Comment