0

It's a simple question but I can't seem to figure it out. I have a data set. I found the least-square line .when I write summary(lm(data_y~data_x)) I can find std.error but I don't know how to find max error or average error in R programming. Is there a function to find them or where did I make mistake or what should I do?

sessen
  • 3
  • 3
  • Are you talking about the Residual Standard Error or Multiple R Squared? – Pablo Rodriguez May 17 '20 at 01:44
  • I can also found both residual standard error and multiple r square with summary commend. However, the question wanted to find max and average error. might residual standard error and multiple r square are the same with max and average error? – sessen May 17 '20 at 02:18
  • 1
    So, I think what you want to ask is about the variability of your residuals in your linear model. You can do this by calling `sigma('your_lm_model_name')` which will give back the residual standard error (which can also be seen by the `summary` function). This is the "max error" as you would call it, because it uses the F statistics to compare the variability of the lm's fitted values(numerator) to the variability of it's residuals (denominator) – Pablo Rodriguez May 17 '20 at 02:32
  • It makes sense. Thanks a lot for your help. – sessen May 17 '20 at 03:40
  • useful comments should be upvoted by OP! My pleasure! – Pablo Rodriguez May 17 '20 at 04:10

0 Answers0