I'm pretty sure that for the school one, the unit of analysis was not a group. Yes, each school is a group of people, but for it to be an ecological study, you would need to have a unit of analysis of groups of schools.
For example, you would need to look in a city and record what proportion of schools were high decile and what proportion had vegetable gardens as one unit of analysis.
If you need further convincing, consider that for the schools study, the ecological fallacy would not be a problem. You would know that those schools with high decile were also the ones with vegetable gardens, because you would be collecting data from each school individually.
Possible explanations for an association must have been all of the above - I can't see any way around this!
For the confounding, it would have made the exposure seem less protective, as those receiving the vaccine would be more likely to get influenza.
For example, you would need to look in a city and record what proportion of schools were high decile and what proportion had vegetable gardens as one unit of analysis.
If you need further convincing, consider that for the schools study, the ecological fallacy would not be a problem. You would know that those schools with high decile were also the ones with vegetable gardens, because you would be collecting data from each school individually.
Possible explanations for an association must have been all of the above - I can't see any way around this!
For the confounding, it would have made the exposure seem less protective, as those receiving the vaccine would be more likely to get influenza.
. How was it? Put anyone off med? haha