The first issue that I feel like I have is that I have limited experience with actually using statistical tests. I apologize ahead of time if this question is illogical.
I have two example vectors below:
A = 0,0,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,0,1,0,0,1,0,1,0,1 B = 1,1,1,1,1,0,1,0,1,0,1,0,1,0,0,1,0,0,1,1,0,1
1 representing a situation in which an event occurs and 0 representing a situation in which an event does not occur. What I know tells me "To find if there is a significant difference between the two groups, run a t-test". The problem that I see is that these numbers represent TRUE or FALSE values rather than quantifiable data, if that makes sense. These numbers could just as easily be 100 and 0 and the logic would technically hold. I don't know if there is a test that examines the difference in TRUE vs. FALSE occurrences between two groups, so I thought that I would ask here.
If it helps the post make sense, I have two types of plants in a plot that I examine weekly for insect eggs. If there are eggs, the value is 1. If there are no eggs, the value is 0. I am trying to see if there is a statistically significant difference between groups A and B in terms of whether or not eggs were laid.