On 31/10/07 4:03 PM, Azam, Mehtabul wrote: > I am trying to draw a random sample from an household survey with > sample weight. Is there any function in R or Splus which allows this.
I'm not sure if this what you're after, but R's pps package lets you sample with probability proportional to size. Hope this helps, James -- James Reilly Department of Statistics, University of Auckland Private Bag 92019, Auckland, New Zealand ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.