/* demo_gmm.do: Sample program to run spatial GMM with a linear model.*/ #delimit ; infile C1 C2 dep indep1 instr1 instr2 using data_gmm.dat; gen const=1; gen cutoff1=4; gen cutoff2=4; x_gmm C1 C2 cutoff1 cutoff2 dep const indep1 const instr1 instr2, xreg(2) inst(3) coord(2);