"plotting regression line"

stablum
stablum New Altair Community Member
edited November 5 in Community Q&A
I wonder if it's possible to plot a regression line. Unfortunately I can just calculate the coefficient and the intercept, but I did not find an operator or a functionality to plot the calculated regression line.

Any ideas?

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Plotting a regression line is only possible in the one-dimensional case, where you have only one input variable. In that case, simply apply the Regression, and plot the prediction versus the true value.

    Best regards,
    Marius
  • stablum
    stablum New Altair Community Member
    Thanks for the answer. What you are proposing is a diagnostic graph in which, if there is no error, the points lie on the y=x line, if I am not mistaken.

    I want something different, I want the independent variable on the X, the dependent variable on the Y, the points plotted and the regression line, which will be characterized by it's angular coefficient and the intercept. What I want is the equivalent of the result of the function abline() applied to lm() in the R language, if this helps to understand my needs better.