I have a convenience sample of patients in a ZIP Code Tabulation Area (ZCTA) for whom I know their gender and age. I also have census data for the ZCTA (in particular I have 1) the percentage of males and females in the ZCTA, and 2) the percentage of the (estimated) population of the ZCTA that is made up of different age groups).
Would raking be the right approach to weight the convenience sample responses so that they constitutes a representative sample of the ZCTA with respect to the following measures:
- The percentage of males and females in the sample, and
- The percentage of each age group.