title: Residual standard error of a regression in python
body: <p>Does anyone know a command or a way to obtain the residual standard error of a regression or standard error of a regression?</p>
  <p>I use the following commands to get the coefficients and the R-squared, I would like to learn one command like these for the standard error of the regression:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>#For the coefficients:
  model = smf.OLS(y, X).fit()
  print(model.params)
  
  #For the R-squared:
  model = smf.OLS(y, X).fit()
  print(model.rsquared)</code></pre>
  </div>
  </div>
  </p>
  <p>I will be really grateful to the person that can help me with this issue.</p>