🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"plotting regression line"

User: "stablum"
New Altair Community Member
Updated by Jocelyn
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?

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "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
    User: "stablum"
    New Altair Community Member
    OP
    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.