Re: [R] using string as variable name in model

2010-06-04 Thread Roni Kobrosly
update() works! Thank you thomas On Jun 4, 2010, at 11:47 AM, Thomas Lumley wrote: > > > I think you're looking for the update() function. > > -thomas > > On Thu, 3 Jun 2010, Roni Kobrosly wrote: > >> Hi, >> >> I made a small table of strings that will serve as variable names for lm >>

Re: [R] using string as variable name in model

2010-06-04 Thread Thomas Lumley
I think you're looking for the update() function. -thomas On Thu, 3 Jun 2010, Roni Kobrosly wrote: Hi, I made a small table of strings that will serve as variable names for lm models I will run. The table looks like this: varnames numname 11 zCANTAB

Re: [R] using string as variable name in model

2010-06-03 Thread Phil Spector
Roni - Try this: lm(formula(paste(outcome,'income + covariate1 + coviarate2',sep='~')), data=my.data) -> model - Phil Spector Statistical Computing Facility Department of