RyanHornby/csSampling: Complex Survey Sampling

cs_sampling provides estimation of Bayesian models for data collected from complex survey samples by combining functionality from Stan (via rstan and brms) and the survey package. The user can create a survey weighted model in brms or provide custom weighted model via rstan. Survey design information is provided via svydesign objects from the survey package. cs_sampling estimates the weighted stan model and provides an asymptotic covariance correction for model mis-specification due to using survey sampling weights as plug in values in the likelihood. This is often known as a "design effect" which is the "ratio" between the variance from simple random sample and a complex survey sample. See Williams, M. R., and Savitsky, T. D. (2020) Uncertainty Estimation for Pseudo-Bayesian Inference Under Complex Sampling. International Statistical Review, https://doi.org/10.1111/insr.12376.

Getting started

Package details

AuthorMatthew Williams <mrwilliams@rti.org>
MaintainerMahmoud Elkasabi <melkasabi@rti.org>
LicenseMIT + file LICENSE
Version0.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("RyanHornby/csSampling")
RyanHornby/csSampling documentation built on Jan. 5, 2023, 12:37 p.m.