The GMM command help file indicates that the syntax for a moment condition of the form: E(z'u)=0, where z consists of 3 variables for example, should be implemented by only specifying the u term as in:
However, if I want an extra moment condition, such as E( [y-exp({xb:educ exp exp2}]*educ*educ]=0, then this cannot be immediately implemented using the interactive GMM command as the command assumes I want every variable in Z to be multiplied by every moment condition. If I try the command below:
Then to me this generates 6 moment conditions when I only want 4 (the original 3 plus that extra one).
How does one specify specific moment conditions using the GMM command?
Code:
gmm (y-exp({xb:educ exp exp2})), instruments(educ exp exp2)
Code:
gmm (y-exp({xb:educ exp exp2})) ( (y-exp({xb:}))*educ) , instruments(educ exp exp2) twostep winitial(i)
How does one specify specific moment conditions using the GMM command?
Comment