Answers for "residual plot in r"

R
2

residual plot in r

lm_Model = lm(y ~ x, data=df) 
  Model.res = resid(lm_Model)

  plot(df$x, Model.res, ylab="Residuals", xlab="DC Power (W)")+ 
  abline(0, 0)
Posted by: Guest on January-14-2021

Browse Popular Code Answers by Language