rds.chain.boot.draws: draw RDS bootstrap resamples

Description Usage Arguments Details Value

View source: R/rds_bootstrap.r

Description

draw boostrap resamples for an RDS dataset, using the algorithm described in the supporting online material of Weir et al 2012 (TODO PROPER CITE)

Usage

1
rds.chain.boot.draws(chains, mm, dd, num.reps, keep.vars = NULL)

Arguments

chains

a list whose entries are the chains we want to resample

mm

the mixing model

dd

the degree distributions

num.reps

the number of bootstrap resamples we want

keep.vars

if not NULL, then the names of variables from the original dataset we want appended to each bootstrap resampled dataset (default is NULL)

Details

TODO – consider constructing chains, mm from other args

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.