里面有个这个non-linear的例子,不过我不是probit,是一般reg,不知道怎么用这个
Using gmm to fit a nonlinear least-squares model (probit)
. global Phi "normal({b0}+{b1}*x)"
. global phi "normalden({b0}+{b1}*x)"
. gmm ( (y - $Phi)*(-x*$phi) ) ( (y - $Phi)*(-1*$phi) ) winitial(identity) onestep
. nl (y = $Phi)