I have some categorical data from a clinic taken over a year long time period. The plan is to perform a Pearson's Chi Squared test (of independence) on this data.
I am extracting data from a clinic's database and my aim is to see if male patients are more likely to cancel their appointment than female patients.
My query is this: Chi squared requires independent samples but there is a chance that patients may have had multiple appointments within that time period. Whilst I could identify these multi-attenders, how would I then assign them to any one category (presuming some would appear in multiple different categories ).
John Doe may have:
- Attended a cardiology appointment in January
- Attended a cardiology appointment in February
- Cancelled a cardiology appointment in March
To push this to it's limit:
- John Doe then goes through a (very fast) gender reassignment procedure and becomes Jane Doe and then cancels their cardiology appointment in April.
So from one person we have:
- Male/Cancelled: 1
- Male/Attended: 2
- Female/Cancelled: 1
Is Chi Squared the correct test to use in this instance? If so, is there some data processing I should be performing on my data to account for patients who appear multiple times in different categories?