# survey (R)

> Analysis of complex survey samples in R

Source: https://talira.ai/catalog/survey-r-cgwcbgfs
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-only OR GPL-3.0-only[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Thomas Lumley](https://talira.ai/orgs/thomas-lumley.md)

survey is an [R](https://talira.ai/catalog/r-jj1se4aq.md) 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.

## Links

- Website: https://r-survey.r-forge.r-project.org/survey/
- Docs: https://r-survey.r-forge.r-project.org/survey/

## 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

## Trust

Overall: 0.29 out of 1.
Signals: maintenance 0.27, adoption 0.62, backing 0.30, extensibility 0.00.

- latest package release 9 months ago (CRAN survey 4.5)
- packages released for 23 years
- 93k package downloads a month (CRAN)
- backed by Thomas Lumley

## Sources

[^1]: https://cran.r-project.org/web/packages/survey/index.html (checked 29 Nov 2026)
