In single Linear Regression how to calculate the slope and constant value
yhat = m.x1 + c
How to calculate value of m and c?
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