Hi all,
I would like to estimate some marginal effects for different income levels. I was wondering which is the most approapriate stata code for doing this.
(a) Run separate regression for each group (with an if condition) and estimate the marginal effects
and so on
(b) Use an interaction term, like that:
or
(c)
Many thanks
Nikos
I would like to estimate some marginal effects for different income levels. I was wondering which is the most approapriate stata code for doing this.
(a) Run separate regression for each group (with an if condition) and estimate the marginal effects
Code:
regress dv iv if group==1 margins, dydx(iv) atmeans
(b) Use an interaction term, like that:
Code:
regress dv iv##group margins group, dydx(iv) atmeans
(c)
Code:
regress dv iv i.group margins, dydx(iv) at(group=(1 2 3))
Nikos
Comment