In the context of hospital records, I have two dichotomous variables: sex (female/male) and admission circumstance (planned/unplanned) for different years, so subjects are not the same from one year to another. Which analysis can I use to compare if the proportion of planned and unplanned admissions changes depending on sex from 2015 to 2016? Can I use McNemar's test?