I need to compare binary responses (nectar present/absent) between flowers of two treatments ("y" and "n"). This seems like a straight forward case for a Chi-square test, however- my design involved a couple of layers of nesting (site/plant).
What is the best way to account for nesting in a categorical analysis?
Example data below
site plant flower status nectar_present
ek 11 102 n 0
ek 11 103 y 0
ek 11 104 n 1
ek 11 105 y 0
ek 11 106 n 1
ek 11 107 y 0
ek 11 108 n 0