rds.mc.boot.draws: draw RDS bootstrap resamples using the algorithm in Salganik...

Description Usage Arguments Details Value

View source: R/rds_bootstrap.r

Description

this algorithm picks a respondent from the survey to be a seed uniformly at random. it then generates a bootstrap draw by simulating the markov process forward for n steps, where n is the size of the draw required.

Usage

1
rds.mc.boot.draws(chains, mm, dd, num.reps)

Arguments

chains

a list with the chains constructed from the survey using make.chain

mm

the mixing model

dd

the degree distributions

num.reps

the number of bootstrap resamples we want

Details

if you wish the bootstrap dataset to end up with variables from the original dataset other than the traits and degree, then you must specify this when you construct dd using the 'estimate.degree.distns function.

TODO be sure to comment the broken-out trait variables (ie these could all be different from the originals)

Value

a list of length num.reps; each entry in the list has one bootstrap-resampled dataset


surveybootstrap documentation built on May 29, 2017, 9:09 a.m.