Re: [R] multiple variables Y and X

2011-04-04 Thread Carlos Ortega
Hello, You can do that like in the example included in the function step() lm1 <- lm(Fertility ~ ., data = swiss) But my advise is that prior to doing that, you should check this old thread in this list: http://tolstoy.newcastle.edu.au/R/e4/help/08/02/2842.html Regards, Carlos Ortega www.qua

[R] multiple variables Y and X

2011-04-04 Thread Rosario Garcia Gil
Hello I have a model with several hundred Y variables, and also several 1000 X variables. The model is linear lm(Y ~ X). My questions are: 1.- how to avoid writing all Xs variables? is list() the right function? 2.- about the multiple Ys with dependence among some of them, how to incorporate t