title: How to return the p-value and R^2 from statsmodels.api
body: <pre><code>import numpy as np
  import statsmodels.api as sm
  
  n = 50
  np.random.seed(42)
  x = np.random.rand(n)
  y = np.random.rand(n) + 1
  
  X2 = sm.add_constant(x)
  est = sm.OLS(y, X2).fit()
  print(est.summary())
  </code></pre>
  <p><code>est.summary()</code> gives me a nice printout of many summary statistics of my data. But I would like to retrieve the actual values of R^2 and the p-values (in this case, just the pvalue listed for x1). Something like:</p>
  <pre><code>pValue = est.pvalue()
  R_squared = est.rsquared()
  </code></pre>
  <p>Is there a simple way to do this?</p>