This function uses the algorithm described in the supporting online material for Weir et al 2012 (see Details) to take bootstrap resamples of one chain from an RDS dataset.
rds.boot.draw.chain(chain, mm, dd, parent.trait, idvar = "uid")
A list of dataframes with one entry for each respondent in the chain. each dataframe has one row for each bootstrap replicate. so if we take 10 bootstrap resamples of a chain of length 50, there will be 50 entries in the list that is returned. each entry will be a dataframe with 10 rows.
The chain to draw resamples for
The mixing model to use
The degree distns to use
A vector whose length is the number of bootstrap reps we want
The name of the variable used to label the columns of the output (presumably some id identifying the row in the original dataset they come from)
See
Weir, Sharon S., et al. "A comparison of respondent-driven and venue-based sampling of female sex workers in Liuzhou, China." Sexually transmitted infections 88.Suppl 2 (2012): i95-i101.