Dear Members,
I am quite new with Stata and wish to seek some help from you.
I've run a panel regression under random effect GLS regression with syntax as following:
xtset ID
panel variable: ID (balanced)
xtreg ln_imp lnsub i.gender lnsubXgender ft lnfa i.state lnecon lnperf num i.yr, vce(cluster ID)
In my model, I've log transformed both the IV and DV while creating an interaction term between the lngsv (natural log transformed) and eth (one IV as a dummy variable) by simply multiplication (basically a 1*a continuous variable) and found out a negative significant result with the interaction term (at the same time, the coefficient for lnsub is also negative significant). However, if I substitute the method by stating:
xtreg ln_imp lnsub i.gender c.lnsub#i.gender ft lnfa i.state lnecon lnperf num i.yr, vce (cluster ID).
The results for the interaction term is switching to a positive insignificant output.
I am wondering which method should I rely on?
In addition, since I've log transformed both the IV and the DV, does it still make sense to use a -twoway lfit- to graph the interaction effect?
Thank you so much for your kind help and I am looking forward your reply.
Sincerely,
Bin
I am quite new with Stata and wish to seek some help from you.
I've run a panel regression under random effect GLS regression with syntax as following:
xtset ID
panel variable: ID (balanced)
xtreg ln_imp lnsub i.gender lnsubXgender ft lnfa i.state lnecon lnperf num i.yr, vce(cluster ID)
In my model, I've log transformed both the IV and DV while creating an interaction term between the lngsv (natural log transformed) and eth (one IV as a dummy variable) by simply multiplication (basically a 1*a continuous variable) and found out a negative significant result with the interaction term (at the same time, the coefficient for lnsub is also negative significant). However, if I substitute the method by stating:
xtreg ln_imp lnsub i.gender c.lnsub#i.gender ft lnfa i.state lnecon lnperf num i.yr, vce (cluster ID).
The results for the interaction term is switching to a positive insignificant output.
I am wondering which method should I rely on?
In addition, since I've log transformed both the IV and the DV, does it still make sense to use a -twoway lfit- to graph the interaction effect?
Thank you so much for your kind help and I am looking forward your reply.
Sincerely,
Bin
Comment