Dear R-users
(B
(BI have, say, 5 dependent variables, d1 to d5.
(BAnd I also have 2 independent variable x1, x2.
(BSuppose I need to do regression analyses for all
(Bthe dependent variables, using the same set 
(Bof independent variables, x1 and x2.
(B
(BHow can I do the analyses without writing five lines of
(Blm(d1~x1*x2)
(Blm(d2~x1*x2)
(Blm(d3~x1*x2)
(Blm(d4~x1*x2)
(Blm(d5~x1*x2)
(B
(BI like to write the R codes something like
(Bl <- c("d1","d2","d3","d4","d5")
(Bfor( i in l ) lm(i~x1*x2).
(B
(BHowever, this does not work.
(B
(BI hope you get the idea about what I want to do.
(BSo, Could you help me.
(BSincerely
(B
(B---------------------------
(BHiroto Miyoshi$B!!!J;09%90?M!K(B
([EMAIL PROTECTED]
(B
(B______________________________________________
([EMAIL PROTECTED] mailing list
(Bhttp://www.stat.math.ethz.ch/mailman/listinfo/r-help


Reply via email to