I am trying to do an analysis where I am trying to create two similar samples based on three different attributes. I want to create these samples first and then do the analysis to see which out of those two samples is better. The categorical variables are sales_group, age_group, and country. So I want to make both samples such as the proportion of countries, age, and sales is similar in both samples.
For example: Sample A and B have following variables in it: Id Country Age Sales
The proportion of Country in Sample A is:
USA- 58% UK- 22% India-8% France- 6% Germany- 6%
The proportion of country in Sample B is: India- 42% UK- 36% USA-12% France-3% Germany- 5%
The same goes for other categorical variables: age_group, and sales_group
Thanks in advance for help