I want to know if a proportion increased significantly after an event, and then find out if that holds true over multiple events. I'm using a paired t-test to measure this with continuous data (e.g. mass), but I don't think I can use that to test for a proportion.
For example, I'm interested in the proportion of identified insect species (range 14-56) that is migratory (range 2-15) in 94 almost-daily samples of insect DNA extracted from bat feces, examined before and after 39 cold fronts that occurred during the sampling period. The insects migrate on favorable winds after cold fronts, and I'm testing whether bats eat more migratory insects directly after a cold front than on other sampling days. Here's a sample of the data.
structure(list(migr = c(5, 6, 2, 6, 8, 7, 10, 4, 7, 9, 8, 10,
8, 13), spp = c(26, 31, 26, 30, 35, 44, 35, 32, 43, 30, 38, 39,
49, 49), front = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0)), class = "data.frame", row.names = c(NA,
-14L), .Names = c("migr", "spp", "front"))
I'm using R, and there does not seem to be a function that does what I need. I can compare two proportions (prop.test
), but not a series of proportions a'la paired t-test. I looked at the function pairwise.prop.test but it does a subtly different test, comparing multiple percentages instead of multiple pairs of percentages. It seems odd that I would need to use meta-analysis tools when I have the original data.
If I must use meta-analysis tools to aggregate p-values, how do I determine the appropriate function to use? Thanks to the link to the metap package, but there are many options (including the sum of logs method which was suggested to me earlier).
qchisq
orpairwise.prop.test
it seems you are assuming everyone is using the same statistical software as you. But in fact your question is generally not software-specific (apart from asking whether a wrapping function is available - which is off-topic here anyway, see our help center). So I think it would be better to edit your question to replace references to commands in your software by the actual statistical term that you mean. $\endgroup$