Hello,

I am using the ppswr function to perform probability proportional to size
sampling for a list of subjects, which returns the indices of the rows
sampled from a given matrix (of census blocks).  (e.g. 2,5,29,8, 29... rows
2, 5 and 8 are chosen once and row 29 is chosen twice for a particular
subject).  I would like to compare these indices returned from the ppswr
function to the original table and add a new variable to the original table
to indicate how many times a row was selected.  The sampling procedure needs
to happen once for each of 10,000 subjects, so must be within a loop.
Advice appreciated!

K

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to