OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Python linear regression Spread-Level plot similar to R

  • Thread starter Thread starter userLx
  • Start date Start date
U

userLx

Guest
4

I'm trying to get the spread-level plot for a linear regression in Python and I was wondering if there's a quick way to do this.

In R, you can use the code snippet below which'll give you the spread-level plot

Code:
model <- lm(x~ y, data = df1)
summary(model)
spreadLevelPlot(model)
<p>4</p>
<p>I'm trying to get the spread-level plot for a linear regression in Python and I was wondering if there's a quick way to do this.</p>
<p>In R, you can use the code snippet below which'll give you the spread-level plot</p>
<pre><code>model <- lm(x~ y, data = df1)
summary(model)
spreadLevelPlot(model)
</code></pre>
 
Top