class_docstr: Results instance for the QuantReg model
class_docstr_tok: ["Results","instance","for","the","QuantReg","model"]
code: def prsquared(self):
      q = self.q
      endog = self.model.endog
      e = self.resid
      e = np.where(e < 0, (1 - q) * e, q * e)
      e = np.abs(e)
      ered = endog - stats.scoreatpercentile(endog, q * 100)
      ered = np.where(ered < 0, (1 - q) * ered, q * ered)
      ered = np.abs(ered)
      return 1 - np.sum(e) / np.sum(ered)
  
imports: import numpy
  import warnings
  import scipy.stats
  from numpy.linalg import pinv
  from scipy.stats import norm
  from statsmodels.tools.decorators import cache_readonly
  from statsmodels.regression.linear_model import RegressionModel, RegressionResults, RegressionResultsWrapper
  from statsmodels.tools.sm_exceptions import ConvergenceWarning, IterationLimitWarning
label_desc: Use image node_id 1 for calling the QuantRegResults obj's underlying member method code with example usage: obj.prsquared() and returns: unknown