Skip to content
logo
linearmodels 6.1
linearmodels.iv.gmm.HeteroskedasticWeightMatrix.weight_matrix
Initializing search
    linearmodels
    linearmodels
    • Instrumental Variable Estimation
      • Introduction
      • Basic Examples
      • Further Examples
      • Using formulas to specify models
      • Absorbing Regression
      • Module Reference
        • Instrumental Variable Estimation
        • Absorbing Least Squares
        • Estimation Results
        • Instrumental Variable Covariance Estimation
        • GMM Weight and Covariance Estimation
          • linearmodels.iv.gmm.IVGMMCovariance
          • linearmodels.iv.gmm.HomoskedasticWeightMatrix
          • linearmodels.iv.gmm.HeteroskedasticWeightMatrix
            • Clinearmodels.iv.gmm.HeteroskedasticWeightMatrix
              • linearmodels.iv.gmm.HeteroskedasticWeightMatrix.weight_matrix
                • MHeteroskedasticWeightMatrix.weight_matrix
                  • Parameters
                    • px
                    • pz
                    • peps
                  • Returns
                  • Return type
              • linearmodels.iv.gmm.HeteroskedasticWeightMatrix.config
          • linearmodels.iv.gmm.KernelWeightMatrix
          • linearmodels.iv.gmm.OneWayClusteredWeightMatrix
        • IV Data Structures
      • Formulas and Mathematical Detail
    • Panel Data Model Estimation
    • Linear Factor Models for Asset Pricing
    • System Regression Models
    • Utilities
    • Compatibility
    • Type Aliases
    • Module Plans
    • Contributing
    • Change Log
    • References
    • MHeteroskedasticWeightMatrix.weight_matrix
      • Parameters
        • px
        • pz
        • peps
      • Returns
      • Return type

    linearmodels.iv.gmm.HeteroskedasticWeightMatrix.weight_matrix¶

    HeteroskedasticWeightMatrix.weight_matrix(x: ndarray, z: ndarray, eps: ndarray) → ndarray[source]¶
    Parameters:¶
    x: ndarray¶

    Model regressors (exog and endog), (nobs by nvar)

    z: ndarray¶

    Model instruments (exog and instruments), (nobs by ninstr)

    eps: ndarray¶

    Model errors (nobs by 1)

    Returns:¶

    Covariance of GMM moment conditions.

    Return type:¶

    numpy.ndarray

    Previous linearmodels.iv.gmm.HeteroskedasticWeightMatrix
    Next linearmodels.iv.gmm.HeteroskedasticWeightMatrix.config
    © Copyright 2021, Kevin Sheppard.
    Created using Sphinx 8.0.2. and Sphinx-Immaterial