talira

survey (R)

Analysis of complex survey samples in R

open sourceGPL-2.0-only OR GPL-3.0-onlyfree

survey is an R package by Thomas Lumley for analysing complex survey samples: multistage, stratified, cluster-sampled and unequally weighted designs. It provides summary statistics, two-sample and rank tests, generalised linear, cumulative link, Cox and loglinear models and maximum pseudolikelihood estimation, with variances by Taylor series linearisation or replicate weights. It also handles post-stratification, calibration and raking, two-phase and multiphase designs, PPS sampling without replacement, small-area estimation and dual-frame designs.

Problems it solves

  • analyse weighted survey data in R
  • estimate population totals from a stratified sample
  • fit a regression on complex survey data

Features

  • design-based estimates for stratified and clustered samples
  • regression models for survey data
  • Taylor linearisation and replicate-weight variances
  • post-stratification, calibration and raking
  • small-area estimation and multiphase designs