class_docstr: Results for multivariate linear regression
      
class_docstr_tok: ["Results","for","multivariate","linear","regression"]
docstr: Diagonal of the hat_matrix for OLS
  
  Notes
  -----
  temporarily calculated here, this should go to model or influence class
docstr_tok: ["Diagonal","of","the","hat_matrix","for","OLS","Notes","--","--","-","temporarily","calculated","here",",","this","should","go","to","model","or","influence","class"]
code: def _hat_matrix_diag(self):
      """Diagonal of the hat_matrix for OLS
  
      Notes
      -----
      temporarily calculated here, this should go to model or influence class
      """
      # computation base on OLSInfluence method
      exog = self.model.exog
      pinv_wexog = np.linalg.pinv(exog)
      return (exog * pinv_wexog.T).sum(1)
  
imports: import numpy
  from numpy.linalg import eigvals, inv, solve, matrix_rank, pinv, svd
  from scipy import stats
  import pandas
  from patsy import DesignInfo
  from statsmodels.compat.pandas import Substitution
  from statsmodels.base.model import Model, LikelihoodModelResults
  import statsmodels.base.wrapper
  from statsmodels.regression.linear_model import RegressionResultsWrapper
  from statsmodels.iolib import summary2
  from statsmodels.tools.decorators import cache_readonly
label_desc: Use image node_id 6 for calling the MultivariateLSResults obj's underlying member method code with example usage: obj._hat_matrix_diag() and returns: unknown