Dear colleagues,
I noted that graphs from margins and predict shows somewhat different patterns. I was interested in the marginal effects of income#time. I did this in two ways:
1. margins , at(T=(0(1)9) Sincome=(0 4)) // income 0= lowest 4=highest
2. predict PS
graph twoway lfit PS T if Sincome ==4 || lfit PS T if Sincome ==0, legend(lab(1 "highest_inc") lab(2 "lowest_inc")) // qfit is also applied
Is it just a matter of intercept?
Thanks!
I noted that graphs from margins and predict shows somewhat different patterns. I was interested in the marginal effects of income#time. I did this in two ways:
1. margins , at(T=(0(1)9) Sincome=(0 4)) // income 0= lowest 4=highest
2. predict PS
graph twoway lfit PS T if Sincome ==4 || lfit PS T if Sincome ==0, legend(lab(1 "highest_inc") lab(2 "lowest_inc")) // qfit is also applied
Is it just a matter of intercept?
Thanks!
Comment