Dear Statalisters,
I am running a full interaction model where all my variables are multiplied by year and gender as below:
I have two questions:
1) Is there a better/more efficient way of writing interaction terms rather than the way I did it?
2) Is there a command for calculating the coefficients by gender and year and automatically calculates the p-values?
I mean like calculating the coefficients for females in 2012 and in 2006 and the coefficients for males in 2012 and 2006 from the Tobit model results rather than aggregating them manually.
Thanks in advance.
Maye
I am running a full interaction model where all my variables are multiplied by year and gender as below:
Code:
global indep12 "i.agegrp5##female##year2012 i.educ4##female##year2012 i.urban##female##year2012 i.public##female##year2012"
Code:
xttobit $dep $indep1 [iw=panel_wt_06_12], ll(0)
1) Is there a better/more efficient way of writing interaction terms rather than the way I did it?
2) Is there a command for calculating the coefficients by gender and year and automatically calculates the p-values?
I mean like calculating the coefficients for females in 2012 and in 2006 and the coefficients for males in 2012 and 2006 from the Tobit model results rather than aggregating them manually.
Thanks in advance.
Maye
Comment