I have a whole data frame df whose columns are y1, y2,..yn, x, z. The first several columns are y, and the last two are X and Z (instrumental variable) So I am trying to do many instrumental regressions. Them should look like reg1 <- ivreg(y1~ x|z, data = df) ... regn<- ivreg(yn~ x|z, data = df)
and I want the see the result, hopefully put the coefficients all in a table.