[R] Is it the PPS samples i needed in R?

From: zhijie zhang <epistat_at_gmail.com>
Date: Fri 12 Jan 2007 - 15:09:09 GMT

Dear friends,
  I want to do a unequal probability sampling, that is, Probability Proportionate to size, Is it right for the following programs? Say my original dataset is:

 ID Population

 1     100
 2     200
 3     300

 IF the population is large ,then the corresponding ID has the large Probability to be selected.

sample(A$ID, size=2, replace = FALSE, prob = A$population) #suppose the dataset name is A.
Is it the PPS samples i needed ?
 Any suggestions are greatly welcome.

With Kind Regards,


::\_)::(..):: :::::::)./::: ::::::(_/:::: ::::::::::::: [***********************************************************************] Zhi Jie,Zhang ,PHD Tel:86-21-54237149 epistat@gmail.com Dept. of Epidemiology,school of public health,Fudan University Address:No. 138 Yi Xue Yuan Road,Shanghai,China Postcode:200032 [***********************************************************************] oooO::::::::: (..):::::::::
::\_)::(..):: :::::::)./::: ::::::(_/:::: ::::::::::::: ______________________________________________ R-help@stat.math.ethz.ch 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.
Received on Sat Jan 13 02:13:00 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 16 Jan 2007 - 19:31:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.