Hi statalists,
I need your help.
I am currently trying to estimate the model (3) by plugging (2) into (1)
(1) yi = b0 + b1i * xi + b2i * zi + ei
(2) b1i = g0 + g1 * pi + g2 * zi + ui
(3) yi = b0 + (g0 + g1 * pi + g2 * zi + ui)* xi + b2i * zi + ei
= b0 + g0*xi + g1*pi*xii + g2*zi*xi+ ui*xi + b2i* zi + ei
This is the random coefficient model.
What kind of command I have to use to estimate?
For xi, I have edu( years of schooling ) and for zi, I have age, age (age squared), and urban.
For pi, I have pre (precipitaion)
Thank you in advance.
I need your help.
I am currently trying to estimate the model (3) by plugging (2) into (1)
(1) yi = b0 + b1i * xi + b2i * zi + ei
(2) b1i = g0 + g1 * pi + g2 * zi + ui
(3) yi = b0 + (g0 + g1 * pi + g2 * zi + ui)* xi + b2i * zi + ei
= b0 + g0*xi + g1*pi*xii + g2*zi*xi+ ui*xi + b2i* zi + ei
This is the random coefficient model.
What kind of command I have to use to estimate?
For xi, I have edu( years of schooling ) and for zi, I have age, age (age squared), and urban.
For pi, I have pre (precipitaion)
Thank you in advance.
Comment