[R] Moving window regressions - how can I improve this code?

Douglas Bates bates at stat.wisc.edu
Sun May 16 13:23:11 CEST 2004


Douglas Bates <bates at cs.wisc.edu> writes:

...
> Try changing the call of lm.fit to 
>    lm.fit(x[ind, , drop = FALSE), y[ind])

It will probably work better without the syntax error, as
                lm.fit(x[ind, , drop = FALSE], y[ind])




More information about the R-help mailing list