[R] ls.diag and lsfit very basic question

2011-01-22 Thread MM
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, _

[R] An introduction to R: 6.3.2

2011-01-23 Thread MM
The $ notation, such as accountants$statef,  shouldn't it be The $ notation, such as accountants$home, instead? regards, __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

[R] runsd {caTools} crashes R 64bit on winxp64bit with a very large vector

2011-01-29 Thread MM
Hello I have a 3.5 million elements numeric vector x. I'm trying to calculate the rolling std dev of the previous 144 elements. rsd144<-runsd(x, 144, center=0, endrule="NA") this crashes R (ie on the console disappears and the Rgui.exe process is not there anymore) with smaller vectors