I have a data set constisting of gender and years (2010 representing before the improvement and 2012 representing after the improvement) and another table comparing age against the years:
Before After
2010 2012
420 365
628 503
(1st row = women, 2nd row = men)
Before After
2010 2102
202 142
280 223
485 503
( 1st row = 18-40, 2nd row = 41-65, 3rd row = >65)
I want to see if there is any difference between 2010 compared to 2012, for women and then for men, and also for each of the ages. How can I go about to do that? What test should I use? Unpaired two sided t test? Or a test to compare the proportions?