[R] ls.diag and lsfit very basic question

MM finjulhich at gmail.com
Sat Jan 22 23:54:29 CET 2011


Hello,

Is the "std.dev" component of ls.diag( lsfit(x,y) ) the sample standard
deviation of the residuals of the fit?

I have
  ls.diag(lsfit(xx,yy))$std.dev
different from
  sd(lsfit(xx,yy)$residuals)

where xx and yy are vectors of 5 elements.

Regards,



More information about the R-help mailing list