I have count-data of patients with an event which occurred on different days in the week. For example:
Event occurred on:
Monday Tuesday Wednesday
28 36 48
Let's assume all events together represent the number of patients.
n=112
My question is, is it valid to do the follwing:
1. Build a two row contingency table while defining the second row as:
patients with no event on day x = n - events on day x
This would result in the following two row table:
Monday Tuesday Wednesday
Event occurred 28 36 48
Event not occured 84 76 64
2. To use the chi-square test on this table, e.g. to check whether the null-hypothesis of no difference in events between Monday and Wednesday is True or False. For example in R (assume the contingency table is named cont1):
chisq.test(x = cbind(cont1[,1], cont1[,3]), correct = F)
I know that I can use the goodness of fit test to check this. I already asked a question about this here, suggesting that I would check the null-hypothesis of no difference in events per hour between Monday and Wednesday. I hope I got this right.
Interestingly, the expected values between the two tests do not differ but the p-values do. I'm sure these are two different tests but is it valid to use both? There already was a thread about this (here), unfortunately with no satisfying answer.