11 November 2015 3 7K Report

I should select a random sample of 'n' residents from the general list containing 'N' records. I need all the records from the general list to have the same probability to be chosen,

I tried to do that in Stata, but I haven't found a way:

  • the command sample only provide tools for pseudorandom sampling, so the probability to be chosen from the general list becomes higher and higher after every extraction;
  • "bsample" does a boostrap extraction-with-replacement for a specified number of extractions, but the point is that I need 'n' residents, not 'n' extractions!

Is there any other way to do what I'd like to do (either in Stata or in R)?

Many thanks for any suggestion!

Similar questions and discussions