Re: [R] survey weights in sample with replacement

2007-10-31 Thread Mehtabul Azam
Wednesday, October 31, 2007 9:44 AM To: Azam, Mehtabul Cc: [EMAIL PROTECTED] Subject: Re: [R] survey weights in sample with replacement On Tue, 30 Oct 2007, Azam, Mehtabul wrote: >>> Hi, > I am trying to draw a random sample from an household survey with > sample weight.

Re: [R] survey weights in sample with replacement

2007-10-31 Thread Thomas Lumley
On Tue, 30 Oct 2007, Azam, Mehtabul wrote: >>> Hi, > 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. > It depends on exactly what you want. The sample() function will draw unequal probability sample

Re: [R] survey weights in sample with replacement

2007-10-30 Thread James Reilly
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 proportiona

[R] survey weights in sample with replacement

2007-10-30 Thread Azam, Mehtabul
>> Hi, 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. Regards, *** Mehtabul Azam Department of Economics Southern Methodist University Dallas TX