Re: [R] calling a variable which in turn calls many more variables

2011-10-08 Thread justin jarvis
Yeah thanks guys. I can utilize this update function to help clean things up. It's not as simple as I was hoping though. Also, Bert, by updating the data argument, don't I still have to update the model anyway to take advantage of the extra covariates? Justin On Wed, Oct 5, 2011 at 12:55 PM, Be

Re: [R] calling a variable which in turn calls many more variables

2011-10-05 Thread Bert Gunter
Ista: But I think the problem here is how to update the model formula. I see no "simple" way to do that (it can be done straightforwardly enough, but I wouldn't consider it simple). ... But perhaps what you meant is to update the data argument like this: cntrl <- data.frame(...) ##response + un

Re: [R] calling a variable which in turn calls many more variables

2011-10-05 Thread Ista Zahn
Hi Justin, On Wed, Oct 5, 2011 at 3:32 PM, justin jarvis wrote: > Hi all, > I am running regressions with many covariates, most of which remain the same > each time (control variables).  Instead of writing 30 demographic variables > every regression, is there a way I could call them all at once u

[R] calling a variable which in turn calls many more variables

2011-10-05 Thread justin jarvis
Hi all, I am running regressions with many covariates, most of which remain the same each time (control variables). Instead of writing 30 demographic variables every regression, is there a way I could call them all at once using a variable called, perhaps "demog"? I have tried: > demog <- list(ag