csSampling: An R Package for Bayesian Models for Complex Survey Data

08/13/2023
by   Ryan Hornby, et al.
0

We present csSampling, an R package for estimation of Bayesian models for data collected from complex survey samples. csSampling combines functionality from the probabilistic programming language Stan (via the rstan and brms R packages) and the handling of complex survey data from the survey R package. Under this approach, the user creates a survey-weighted model in brms or provides a custom weighted model via rstan. Survey design information is provided via the svydesign function of the survey package. The cs_sampling function of csSampling 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 a complex survey sample and a simple random sample of the same size. The resulting adjusted posterior draws can then be used for the usual Bayesian inference while also achieving frequentist properties of asymptotic consistency and correct uncertainty (e.g. coverage).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/12/2018

Bayesian Estimation Under Informative Sampling with Unattenuated Dependence

An informative sampling design leads to unit inclusion probabilities tha...
research
05/02/2019

A Conditional Empirical Likelihood Based Method for Model Parameter Estimation from Complex survey Datasets

We consider an empirical likelihood framework for inference for a statis...
research
04/30/2018

eggCounts: a Bayesian hierarchical toolkit to model faecal egg count reductions

This is a vignette for the R package eggCounts version 2.0. The package ...
research
07/12/2023

balance – a Python package for balancing biased data samples

Surveys are an important research tool, providing unique measurements on...
research
03/22/2023

GeoAdjust: Adjusting for Positional Uncertainty in Geostatistial Analysis of DHS Data

The R-package GeoAdjust https://github.com/umut-altay/GeoAdjust-package ...
research
09/14/2022

Two-stage Sampling Design and Sample Selection with the R package R2BEAT

R2BEAT (R "to" Bethel Extended Allocation for Two-stage sampling) is an ...
research
04/20/2020

R package SamplingStrata: new developments and extension to Spatial Sampling

The R package SamplingStrata was developed in 2011 as an instrument to o...

Please sign up or login with your details

Forgot password? Click here to reset