Unlimited learning, half price | 50% off
Get 50% off unlimited learning

Summary

The goal of the surveybootstrap package is to help people use the bootstrap to estimate sampling uncertainty from surveys, including surveys with complex sample designs.

For more information on the bootstrap for surveys, see

  • Rao, JNK and Wu, CFJ (1988). Resampling inference with complex survey data. Journal of the American Statistical Association, 83(401):231–241.
  • Rao, J., Wu, C., and Yue, K. (1992). Some recent work on resampling methods for complex surveys. Survey Methodology, 18(2):209–217.
  • Rust, K. and Rao, J. (1996). Variance estimation for complex surveys using replication techniques. Statistical Methods in Medical Research, 5(3):283-310.
  • Efron, B. and Tibshirani, R. J. (1993). An introduction to the bootstrap. Chapman and Hall/CRC.

The development of this software was supported by a grant from the National Institutes of Health (R01-HD075666).

Installing

You can install:

  • the latest released version from CRAN with

    install.packages("surveybootstrap")
  • the latest development version from github with

    install.packages("devtools")
    devtools::install_github("dfeehan/surveybootstrap")

Issues

If you would like to suggest a feature or report a bug, please create an issue

Citation

If you use our package for your research, please cite it so that we can continue to develop it.

Wishlist

  • update to use the purrr package, instead of plyr (but we'll probably need to wait until purrr supports parallelization)

Copy Link

Version

Install

install.packages('surveybootstrap')

Monthly Downloads

203

Version

0.0.3

License

MIT + file LICENSE

Maintainer

Dennis M Feehan

Last Published

January 9th, 2023

Functions in surveybootstrap (0.0.3)

max.depth

Get the height (maximum depth) of a chain
make.chain

Build an RDS seed's chain from the dataset
parse_design

Parse a formula that describes the design of a survey
rescaled.bootstrap.sample.pureR

rescaled.bootstrap.sample.pureR
rescaled.bootstrap.weights

rescaled.bootstrap.weights
unparse.trait

Unparse a collapsed trait string
is.child.ct

Determine whether or not one id is a parent of another
rds.boot.draw.chain

Draw RDS bootstrap resamples for one chain
rds.chain.boot.draws

Draw RDS bootstrap resamples
estimate.mixing

Construct a mixing model from GoC/RDS data
traits.to.string

Take a set of traits and turn into a string
rescaled.bootstrap.sample

rescaled.bootstrap.sample
vcat

Only prints things out in verbose mode
rds.mc.boot.draws

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

srs.bootstrap.sample
surveybootstrap

Survey bootstrap variance estimators
weighted.mean

Compute the weighted mean
chain.vals

Get all of the values of the given variable found among members of a chain
MU284.complex.surveys

Simulated sample surveys drawn from the MU284 Population using a complex design
chain.size

Get the size of a chain
bootstrap.estimates

bootstrap.estimates
MU284.estimator.fn

MU284.estimator.fn
chain.data

Get a dataset from a chain
MU284

The MU284 Population dataset
MU284.estimator.summary.fn

MU284.estimator.summary.fn
MU284.surveys

Simulated sample surveys drawn from the MU284 Population
get.weights

Get the weights column from a dataframe
get.fn

Grab a function based on its name
estimate.degree.distns

Estimate degree distributions by trait
get.var

Get a variable from a dataframe or vector
MU284.boot.res.summ

Benchmarks for unit tests
mc.sim

Run a markov model