linearmodels.iv.gmm.OneWayClusteredWeightMatrix.weight_matrix¶ OneWayClusteredWeightMatrix.weight_matrix(x, z, eps)[source]¶ Parameters xndarrayModel regressors (exog and endog), (nobs by nvar) zndarrayModel instruments (exog and instruments), (nobs by ninstr) epsndarrayModel errors (nobs by 1) Returns ndarrayCovariance of GMM moment conditions. Return type ndarray