I want to estimate the effect of several independent variables on several dependent variables. In the example below I wanted to estimate the effect of three independent variables on ozone and temperature. My aim is to create a list of dependent and independent variables and automate the process rather than writing every dependent and independent variable in each model as I have done below.
Example data is provided by the following library: library(faraway) data(ozone) mo3 <- glm(O3 ~ humidity + ibh + ibt, data=ozone) mtemp<- glm(temp ~ humidity + ibh + ibt, data=ozone) Thanks [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.