Skip to content
Prev 59375 / 398502 Next

Performing regression using R & C

On Thu, 18 Nov 2004, Greg Tarpinian wrote:

            
Maybe just read the R code: src/library/stats/R/lm.R contains function 
lm.fit(), which is a wrapper for the Fortran subroutine dqrls(), and is 
about as finely honed as you get. It won't give you the standard errors, 
but you get the coefficients and the qr object, from which the rest can be 
constructed. Using well-supported and maintained code does save time too!

But maybe there are moving window functions around that you can use
without having to "roll your own", searching on "moving window" at
http://finzi.psych.upenn.edu/search.html gave 85 hits, including the
following, which you may find fruitful:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/26904.html

Roger