rizzcombat
New Member
- Joined
- Feb 22, 2016
- Messages
- 5
I have a single document that has individuals personal information (first name, last name, demographics, etc) listed as the headers in the first column. One of the demographics is which state they're affiliated with. Each individual has a column with their states 2 letter abbreviation associated with them.
I need to create a random of 50% for each state, individually. In other words if Nevada as 200 individuals and Utah has 500 individuals, I'd need to randomly select 100 and 250 from each list, respectably. Obviously I know I could break the file up into 50 different sample groups, then recombine, but I wasn't sure if there was a way to achieve this sampling.
Lastly, I need to set a maximum sample size of each state to 200. In other words, if using my above example I'd want to pull 100 names from Nevada but only 200 names from Utah - because their total sample size was 250.
Any suggestions how to do this easily?
I need to create a random of 50% for each state, individually. In other words if Nevada as 200 individuals and Utah has 500 individuals, I'd need to randomly select 100 and 250 from each list, respectably. Obviously I know I could break the file up into 50 different sample groups, then recombine, but I wasn't sure if there was a way to achieve this sampling.
Lastly, I need to set a maximum sample size of each state to 200. In other words, if using my above example I'd want to pull 100 names from Nevada but only 200 names from Utah - because their total sample size was 250.
Any suggestions how to do this easily?