Hi,
I have a question related both to model specification and to implementation in Stata.
I’m trying to model whether a person buys a new house or not, and my main interest is to see whether this differs across age groups (I have four age categories). As a control variable, I include income (log income in dollars). Conceptually, I expect there might be an interaction between age group and income, since the effect of a 1% increase in income on the likelihood of buying a house may differ by age.
To model this, I used the following Stata command:
reg y c.income##i.age_group, vce(robust)
So, my question is how I should go on about it after this. I have read about margins and marginsplot, but I am a bit unsure how this should be specified when my main interst to see if therre is differences between age groups and if the effect of income might differ depending on the age groups.
Note also, that there is large differences in the mean level of income for each age group.
/David D
I have a question related both to model specification and to implementation in Stata.
I’m trying to model whether a person buys a new house or not, and my main interest is to see whether this differs across age groups (I have four age categories). As a control variable, I include income (log income in dollars). Conceptually, I expect there might be an interaction between age group and income, since the effect of a 1% increase in income on the likelihood of buying a house may differ by age.
To model this, I used the following Stata command:
reg y c.income##i.age_group, vce(robust)
So, my question is how I should go on about it after this. I have read about margins and marginsplot, but I am a bit unsure how this should be specified when my main interst to see if therre is differences between age groups and if the effect of income might differ depending on the age groups.
Note also, that there is large differences in the mean level of income for each age group.
/David D

Comment