I am completely stumped on how to solve my problem. Hopefully someone here will know just the trick :-)
I have data for groups of different sizes and I need to re-create these group characteristics using aggregate data from individuals.
Specifically, I need to randomly select different numbers of individual level "Person IDs" (based on the group size) and then sum the values of variable X across those randomly selected people. Also, I need to average the values of variable Y across those randomly selected people.
This sounds a bit confusing so I have attached a sample spreadsheet that clearly outlines my problem.
I need to do this procedure for thousands of rows of data and would love to be able to automate it.
Thanks so much in advance for your help!!! I really appreciate it!!
Also crossposted here:
http://www.mrexcel.com/forum/excel-q...n-random-draw-
specific-number-changes-then-sum-one-variable-average-another-across-randoml
y-selected-values.html#post3850066
http://www.ozgrid.com/forum/showthre...493#post717493
http://www.excelguru.ca/forums/showt...draw-of-specif
ic-number-from-list-sum-one-variable-and-average-another&p=13545#post13545
Attachment 327596Excel example2.xlsx
Bookmarks