Introduction and basic usage User-defined moment equations GMM control settings GMM Application: OLS estimation with exogenous regressors GMM Application: OLS estimation with endogenous regressors