rds.boot.draw.chain: draw RDS bootstrap resamples for one chain

Description Usage Arguments Value

View source: R/rds_bootstrap.r

Description

this function uses the algorithm described in the supporting online material for Weir et al 2012 (TODO PROPER CITE) to take bootstrap resamples of one chain from an RDS dataset

Usage

1
rds.boot.draw.chain(chain, mm, dd, parent.trait, idvar = "uid")

Arguments

chain

the chain to draw resamples for

mm

the mixing model to use

dd

the degree distns to use

parent.trait

a vector whose length is the number of bootstrap reps we want

idvar

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 below)

Value

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.


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