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

About this list Date view Thread view Subject view Author view Attachment view

From: Douglas Bates (bates@stat.wisc.edu)
Date: Sun 16 May 2004 - 21:23:11 EST


Message-id: <6r1xlkvco0.fsf@bates4.stat.wisc.edu>

Douglas Bates <bates@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])

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST