data(simData)
model1 <- momentModel(y~x1, ~z1+z2, data=simData)
## Get a good starting value
theta0 <- gmmFit(model1)@theta
## EL by default, with Wu algorithm
res2 <- solveGel(model1, theta0=theta0)
## Change solver parameters
res3 <- solveGel(model1, theta0=theta0,
tControl=list(method="Nelder", control=list(maxit=2000)))
Run the code above in your browser using DataLab