rds.mc.boot.draws {surveybootstrap}R Documentation

Draw RDS bootstrap resamples using the algorithm in Salganik 2006 (see Details below)

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.

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.

Usage

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

See:

Value

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


[Package surveybootstrap version 0.0.3 Index]