How to calculate the slope and constant value In single Linear Regression
In single Linear Regression how to calculate the slope and constant value
yhat = m.x1 + c
How to calculate value of m and c?
1 answers ( 0 marked as helpful)
Hi Junaid,
the slope and intercept are calculated by the algorithm and are the coefficients for the OLS.
So, you can access them when you get the results.summary() and in the table they are under coef
Best,
Eli