Re: [R] From list to variable name

2009-07-14 Thread Gabor Grothendieck
Using the built in dataset anscombe this regresses y1 on x1 and y3 ignoring the other columns: lrm(y1 ~., anscombe[c("y1", "x1", "y3")]) or lrm(y1 ~., anscombe[c(5, 1, 7)]) either of which eliminate having to calculate special purpose formulas. Also see the leaps package. On Tue, Jul 14, 2009

[R] From list to variable name

2009-07-14 Thread Michelle Greve
Hello I am trying to run equations with different combinations of explanatory variables. I have managed to figure out how to generate the different combinations, and am trying to set up equations where I use these combinations. And this is where I am getting stuck. I have searched several R web