[R] lm without a formula?

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

From: ivo welch (iaw4@welch.som.yale.edu)
Date: Thu 13 May 2004 - 06:59:19 EST


Message-id: <40A29027.2060805@welch.som.yale.edu>


hi: I have a y vector and an x data frame. is it possible to use the
standard linear regression (lm, summary.lm) without having to construct
a formula, i.e., all x variables should be used.

    x <- data.frame( rnorm(10), rnorm(10) ); # <-- well, this would
really be read from a file
    y <- rnorm(10); # ok, also read from the file.
    lm (y ~ x); # this is sort of what I want to do, but of course, it
is not.

thanks for any tips. regards, /iaw

______________________________________________
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:09 EST