Dear R community,
   I have a dataframe with say 100 different variables. I wish to regress
variable 1 separately on every other variable (2-100) in a linear regression
using lm. There must be an easy way to do this without loops, but I have
difficulties figuring this out... Can you please help?
Thank you and best regards, Georg.
*****************************************
Georg Ehret
Johns Hopkins University
Institute of Genetic Medicine

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to