Re: [R] rolling regression between adjacent columns

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue, 29 Jul 2008 20:39:59 -0400

Read the last line of every message to r-help.

On Tue, Jul 29, 2008 at 6:15 PM, rcoder <mpdotbook_at_gmail.com> wrote:
>
> Hi everyone,
>
> I am trying to apply linear regression to adjacent columns in a matrix (i.e.
> col1~col2; col3~col4; etc.). The columns in my matrix come with identifiers
> at the top of each column, but when I try to use these identifiers to
> reference the columns in the regression function using rollapply(), the
> columns are not recognised and the regression breaks down. Is there a more
> robust way to reference the columns I need, so that I can apply the
> regression across the matrix; 'by.column', but every other column?
>
> Thanks,
>
> rcoder
> --
> View this message in context: http://www.nabble.com/rolling-regression-between-adjacent-columns-tp18722392p18722392.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 30 Jul 2008 - 00:42:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 30 Jul 2008 - 19:32:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive