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]]

