[R] using a string as the formula in rlm

2003-10-02 Thread Rajarshi Guha
Hi, I am trying to build a series of rlm models. I have my data frame and the models will be built using various coulmns of the data frame. Thus a series of models would be m1 - rlm(V1 ~ V2 + V3 + V4, data) m2 - rlm(V1 ~ V2 + V5 + V7, data) m3 - rlm(V1 ~ V2 + V8 + V9, data) I would like to

RE: [R] using a string as the formula in rlm

2003-10-02 Thread Liaw, Andy
It may help you to read Bill Venables' column in R News http://cran.r-project.org/doc/Rnews/Rnews_2002-2.pdf, pages 24-26. Andy -Original Message- From: Rajarshi Guha [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: [R] using a

Re: [R] using a string as the formula in rlm

2003-10-02 Thread Uwe Ligges
Rajarshi Guha wrote: Hi, I am trying to build a series of rlm models. I have my data frame and the models will be built using various coulmns of the data frame. Thus a series of models would be m1 - rlm(V1 ~ V2 + V3 + V4, data) m2 - rlm(V1 ~ V2 + V5 + V7, data) m3 - rlm(V1 ~ V2 + V8 + V9, data)

Re: [R] using a string as the formula in rlm

2003-10-02 Thread Spencer Graves
Have you considered the following: fmla - formula(sprintf('V1 ~ V%g + V%g + V%g',2,3,4)) hope this helps. spencer graves Rajarshi Guha wrote: Hi, I am trying to build a series of rlm models. I have my data frame and the models will be built using various coulmns of the data frame. Thus

Re: [R] using a string as the formula in rlm

2003-10-02 Thread Marc Schwartz
On Thu, 2003-10-02 at 10:25, Rajarshi Guha wrote: Hi, I am trying to build a series of rlm models. I have my data frame and the models will be built using various coulmns of the data frame. Thus a series of models would be m1 - rlm(V1 ~ V2 + V3 + V4, data) m2 - rlm(V1 ~ V2 + V5 + V7,