Re: [R] Using lm with a matrix?

From: jonboym <jonboym2_at_yahoo.co.uk>
Date: Fri, 13 Jun 2008 11:33:20 -0700 (PDT)

Many thanks, works great!

Charilaos Skiadas-3 wrote:
>
> Try this:
>
> lapply( 1:2, function(i) lm( y~x, data=list(x=xdat[,i], y=ydat[,i]) ) )
>
> Haris Skiadas
>

-- 
View this message in context: http://www.nabble.com/Using-lm-with-a-matrix--tp17708207p17829661.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.
Received on Sat 14 Jun 2008 - 01:01:46 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 Sat 14 Jun 2008 - 02:30:47 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