Please see attached!
Michelle,
I don't understand what you did here and I don't see the responses to each component of the assignment. It would be easier to read an annotated log file explaining how each step of your code answers a question in the assignment. Note the difference between iterating a bootstrap 1000 times, resampling 500 people each time from the same 10,000 observations, versus iterating 1000 times generating a new data set each time. Many of the same individuals would be in multiple bootstrap resamples here. You could approximate generating 1000 new data sets if you had a truly huge original population from which you are sampling, but that will not be the case w/ n=10,000, and it would be cleaner to iterate across the data generating process.
m